Create an S3 bucket for a specific region

If I create an S3 bucket as follows:

AmazonS3Config amazonS3Config = new AmazonS3Config { ServiceURL = "s3-eu-west-1.amazonaws.com" }; AmazonS3Client amazonS3Client = new AmazonS3Client(myAccessKeyId, mySecretAccessKey, amazonS3Config) PutBucketRequest request = new PutBucketRequest { BucketName = bucket.Name, BucketRegion = S3Region.EU }; amazonS3Client.PutBucket(request); 

As you can see, I clearly indicated how to create your own bucket in the EU region,
but when I go to AWS explorer, I see that my bucket is available in all regions.

What is the point of indicating the bucket area if my bucket is always replicated in all regions?
Can anyone clarify?

Thanks!

+4
source share
1 answer

Presumably you are referring to the Amazon S3 node in the AWS Explorer view AWS Toolkit for Eclipse or AWS Toolkit for Microsoft Visual Studio ?

Amazon S3 is unique among AWS services related to managing the region in different ways (most likely, this is an outdated problem due to the fact that it is one of the earliest offers), which is also reflected in the AWS Management Console : until this day:

The main design aspect that matters here is that the name S3 bucket must be globally unique , no matter in which region you create it. This is probably why AWS decided to show all buckets in a single view, and not be divided by region, like all other services, which, admittedly, can be very confusing (and becoming cumbersome, as well as a growing number of buckets).

However , the bucket is still being created in the region you specify, it is simply not obvious due to the unified presentation in the AWS Explorers and AWS Management Console. You can see the bucket area by opening its properties view (via the Properties menu in the toolboxes or the Properties button in the console).


Update

I just realized that the AWS Toolkit for Eclipse unexpectedly lacks such a properties window for the S3 bucket, which not only severely limits its functionality (because you cannot change the parameters of extended buckets, for example), but should be recognized as a noticeable usability error in the light of your question .

This is quite problematic given the available view property and the completely simple API operation needed for this - I usually use both Visual Studio and Eclipse on a daily basis and have long switched to AWS Toolkit for Microsoft Visual Studio because of its supposed performance advantages and more wider and deeper service coverage, but did not know about this truly amazing omission.

Accordingly, you need to go to the AWS management console or the AWS Toolkit for Microsoft Visual Studio to visually check / verify your region at the moment.

+5
source

All Articles