Description
Currently, the S3 bucket URL parsing for AWS here is mistakenly parsing the bucket out of URL https://s3.bucket.amazonaws.com. However, this URL does not represent a valid S3 bucket URL format. The correct format should be https://s3.region.amazonaws.com/bucket for Path style as mentioned in AWS user guide here
Expected behavior
The parse_url method on builder should correctly parse the S3 bucket URL and set region and bucket accordingly.
Additional context
Invalid URL in Test
parse_url
Description
Currently, the S3 bucket URL parsing for AWS here is mistakenly parsing the bucket out of URL
https://s3.bucket.amazonaws.com. However, this URL does not represent a valid S3 bucket URL format. The correct format should behttps://s3.region.amazonaws.com/bucketfor Path style as mentioned in AWS user guide hereExpected behavior
The
parse_urlmethod on builder should correctly parse the S3 bucket URL and set region and bucket accordingly.Additional context
Invalid URL in Test
parse_url