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

gefragt vor 4 Jahren3144 Aufrufe
3 Antworten
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
beantwortet vor 4 Jahren
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.

beantwortet vor 4 Jahren
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
beantwortet vor 7 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen