-
If I want to get region of a bucket, I can use S3::S3Client::GetBucketLocation method.
But S3::S3Client::HeadBucket method doesn't return any information about bucket region... GetBucketLocation method has another problem. If the bucket region is 'us-east-1', the result of S3::S3Client::GetBucketLocation is NOT_SET. It sounds very strange... Is there any smarter ways to get bucket region? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It looks like this sdk isn't returning the headers when there is
This is expected behavior. I believe it is this way because all buckets used to not be associated to any region |
Beta Was this translation helpful? Give feedback.
this was fixed in 1.11.212 when we merged in customizations for express zonal one alongside other changes for re-invent last year. there are several important bug fixes related to it though so i would suggest picking up from HEAD. example code: