head_bucket returns ResponseMetadata without BucketRegion #4191
Labels
bug
This issue is a confirmed bug.
p2
This is a standard priority issue
response-requested
Waiting on additional information or feedback.
s3
Describe the bug
Hello, I want to know the bucket location and so I used
head_bucket
for s3 client.and I received ResponseMetadata as follows:
You cannot find the BucketRegion key even though the response indicates the status code 200. This is only happen when I run the code on the
us-east-1
region of AWS lambda.Expected Behavior
It should somehow contains the
'BucketRegion': 'us-east-1'
key and value in the response dict.Current Behavior
It does not contain
BucketRegion
key.Reproduction Steps
Simply write the code to call
head_bucket
method and deploy to the regionus-east-1
of AWS Lambda, run the code.Possible Solution
No response
Additional Information/Context
No response
SDK version used
Installed on docker build, maybe latest
Environment details (OS name and version, etc.)
Docker on public.ecr.aws/lambda/python:3.11.2023.07.13.17-arm64
The text was updated successfully, but these errors were encountered: