frantz / amazon-s3-uri

A URI wrapper that can parse out information about an S3 URI
MIT License
27 stars 11 forks source link

Wrong bucket value when using VPCE #295

Open refre5h opened 2 years ago

refre5h commented 2 years ago

Issue When using VPCE, the URL would be something like this: https://s3.<region>.amazonaws.com/<bucket name>.bucket.vpce-<###>-<###>/<key>. With this URL, the value of the bucket returned by amazon-s3-uri is everything before the <key>, which is <bucket name>.bucket.vpce-<###>-<###>.

Expected When using VPCE, the value of the bucket should just be <bucket name>