Skip to content

did URL for objects in S3 changed recently?

0

Traditionally, Object URL for S3 looked like this:

https://s3.us-west-2.amazonaws.com/bucketname/filename.ext

However, in the account that I created recently (about a month ago), the objects don't have indication of the region:

https://bucketname.s3.amazonaws.com/filename.ext

Additionally, I always knew that bucket names should be unique within the region; however, it looks now that they should be unique globally. There are some other changes in UI - for example, the console shows Region, which seems useless, since it shows all buckets.

Is there a summary of the changes? Feature spotlight only mentions Express One Zone; and search here in repost doesn't give anything either.

asked a year ago1.2K views
2 Answers
4
Accepted Answer

Hello.

Traditionally, Object URL for S3 looked like this:

https://s3.us-west-2.amazonaws.com/bucketname/filename.ext

As stated in the document below, "https://s3.us-west-2.amazonaws.com/bucketname/filename.ext" is an old format and will be deprecated.
Although it is scheduled to be discontinued, I think it can still be used as of September 2024.
"https://bucketname.s3.amazonaws.com/filename.ext" is a URL in the format Virtual-hosted–style requests.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html

Additionally, I always knew that bucket names should be unique within the region; however, it looks now that they should be unique globally. There are some other changes in UI - for example, the console shows Region, which seems useless, since it shows all buckets.

I believe that bucket names being globally unique has remained unchanged since the beginning.
At least in 2020, when I started using AWS, S3 bucket names had to be globally unique.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html

Bucket names must be unique across all AWS accounts in all the AWS Regions within a partition. A partition is a grouping of Regions. AWS currently has three partitions: aws (Standard Regions), aws-cn (China Regions), and aws-us-gov (AWS GovCloud (US)).

EXPERT
answered a year ago
EXPERT
reviewed a year ago
EXPERT
reviewed a year ago
  • Thank you @Riku! When I saw the link to the deprecation note, I remember reading it many years ago; but forgot. And yes, I checked, uniqueness wasn't between commercial and govcloud; not between regions! 👏

1

Hello,

For the object download url, xx.s3.amazonaws.com is probably the us-east-1 / and global endpoint (maybe your buckets are located in us-east-1), whereas the others are regional endpoints, corresponding to the bucket location.

About Express One Zone :

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.