Buckets created in AF-South-1 cannot be accessed through global endpoint

0

Hello Guys,

I have created few buckets in the new Cape Town region. I notice that these buckets are not accessible by the Global S3 endpoint. For example :
https:<bucketname>.s3.amazonaws.com
This give an IllegalConstraintException with the message
The af-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.
Access to these buckets is only allowed using the region endpoint
https:<bucketname>.s3.af-south-1.amazonaws.com

However this is not the case with the buckets created in other regions for example , Ireland or Mumbai.

Requesting guidance on how to access the buckets created in Cape Town region using the global endpoint.

Regards,
Satish

asked 4 years ago3101 views
3 Answers
0

Hello Satish,

Regions launched after 2019-03-20 do not support the legacy global endpoint. This includes the AWS region in Cape Town.

The change, as well as the correct URIs to use, are documented on the following page:
https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingBackwardsCompatibility

We encourage all customers to make use of the awscli or our SDKs, which are available in many programming languages.

Thank you,
.Robert

AWS
answered 4 years ago
0

Also please note that "s3.amazonaws.com" is a standard endpoint address but special case for U.S. East North Virginia you cannot use for other regions.

answered 4 years ago
0

I had an issue using aws cli 1 on amazon linux 2 giving me the same error mentioned by OP. I removed aws cli1 and install version 2. I was then able to use the s3 buckets in CT as normal.

Danie
answered 6 months 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.

Guidelines for Answering Questions