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
My issue arise when I try to create an Athena client using boto3.client()
The function is executed like this: boto3.client('athena', endpoint_url=None)
Digging into the boto code, I see that at some point it reads AWS config file and populates a variable called scoped_config with the valid values.
When execution reaches compute_client_args() the parameters are:
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
My issue arise when I try to create an Athena client using
boto3.client()
The function is executed like this:
boto3.client('athena', endpoint_url=None)
Digging into the boto code, I see that at some point it reads AWS config file and populates a variable called
scoped_config
with the valid values.When execution reaches
compute_client_args()
the parameters are:The error
botocore.exceptions.NoRegionError: You must specify a region.
is thrown later, from theself._compute_endpoint_config()
What I would expect, is that if region is not defined then it would be derived from the AWS config file (from
scoped_config
variable)I have aws config file with session profile that looks like this:
Anything else, like s3 and dynamo, when initialized using
boto3.resource()
opens connection successfully.Expected Behavior
region is populated from the
scoped_config
when undefined explicitlyCurrent Behavior
Fails on
botocore.exceptions.NoRegionError: You must specify a region.
Reproduction Steps
Simple main like this:
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.28.40
Environment details (OS name and version, etc.)
Mac OS Ventura 13.5.2, Python 3.7.9, botocore 1.31.40
The text was updated successfully, but these errors were encountered: