You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to set a region_name when calling generate_presigned_url. The entry method wraps a call to the request_signer and although the request_siger.generate_presigned_url allows region_name as a parameter, the entry method is not capable of passing it on, and it always defaults to the client's pre-set region. In my case, I'm attempting to access an s3 bucket, and I don't know the region of the bucket until after construction of the client, so I must construct a client, query for the bucket region, and then destroy and recreate the client.
Hi @richard-jones - thanks for reaching out. I came across this similar issue here and there are workaround suggested in there. One of the comments was suggested by one of our team members and let me know if that's what you're trying to accomplish.
Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.
Describe the bug
I'm attempting to set a
region_name
when callinggenerate_presigned_url
. The entry method wraps a call to therequest_signer
and although therequest_siger.generate_presigned_url
allowsregion_name
as a parameter, the entry method is not capable of passing it on, and it always defaults to the client's pre-set region. In my case, I'm attempting to access an s3 bucket, and I don't know the region of the bucket until after construction of the client, so I must construct a client, query for the bucket region, and then destroy and recreate the client.https://github.com/boto/botocore/blob/develop/botocore/signers.py#L681
Expected Behavior
For the client to allow me to specify the region on request
Current Behavior
You cannot specify the region on request, you must recreate the client
Reproduction Steps
Possible Solution
Add
region_name
togenerate_presigned_url
method signatureAdditional Information/Context
No response
SDK version used
latest
Environment details (OS name and version, etc.)
Ubuntu 18.04
The text was updated successfully, but these errors were encountered: