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 see that boto3.setup_default_session can help by setting globally aws_access_key_id and aws_secret_access_key but it doesn't seems to have a parameter for config.
def __init__(
self,
aws_access_key_id=None,
aws_secret_access_key=None,
aws_session_token=None,
region_name=None,
botocore_session=None,
profile_name=None,
+ client_config=None,
):
if botocore_session is not None:
self._session = botocore_session
else:
# Create a new default session
self._session = botocore.session.get_session()
+ if client_config is not None:+ self._session.set_default_client_config(client_config)
Other Information
No response
Acknowledgements
I may be able to implement this feature request
This feature might incur a breaking change
SDK version used
1.35.2
Environment details (OS name and version, etc.)
not relevant
The text was updated successfully, but these errors were encountered:
Describe the feature
Be able to define default client_config when setting up a default session.
Use Case
I have a code pattern in multiple places, so I had to make a wrapper:
I see that
boto3.setup_default_session
can help by setting globallyaws_access_key_id
andaws_secret_access_key
but it doesn't seems to have a parameter for config.boto3/boto3/__init__.py
Lines 27 to 34 in bd077f3
Session
constructor that just doesn't have such settings:boto3/boto3/session.py
Lines 49 to 57 in bd077f3
Proposed Solution
Workaround I use (but would like to avoid)
Proposed fix:
Other Information
No response
Acknowledgements
SDK version used
1.35.2
Environment details (OS name and version, etc.)
not relevant
The text was updated successfully, but these errors were encountered: