GetBucketLocation API is behaving wierdly with bucket with region us-east-1

0

Hi. I am using AWS's getbucketlocation api to find the region of a particular bucket. I am getting proper expected results with all regions except for buckets belonging to region us-east-1. Is there any reason for such behaviour?

1 réponse
0

The GetBucketLocation API is expected to return null for buckets in us-east-1 [1]. This likely has something to do with it being the original region, and main region for S3 [2].

[1] https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLocation.html#API_GetBucketLocation_ResponseElements
[2] https://github.com/aws/aws-cli/issues/3597#issuecomment-424167129

Ed
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions