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

已提問 4 年前檢視次數 3140 次
3 個答案
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
已回答 4 年前
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.

已回答 4 年前
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
已回答 7 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南