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 Answer
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
answered a year 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