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 年前3143 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容