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
Describe the bug
After an update on AWS CLI and reconfiguring my SSO session, I've started getting InvalidConfigError on projects using aiobotocore because of the botocore version. The exception is as follows:
/tmp/test-sso/test-sso.py:9: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
Traceback (most recent call last):
File "/tmp/test-sso/test-sso.py", line 10, in <module>
loop.run_until_complete(main())
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/tmp/test-sso/test-sso.py", line 6, in main
cred = await session.get_credentials()
File "/tmp/test-sso/venv/lib/python3.10/site-packages/aiobotocore/session.py", line 79, in get_credentials
self._credentials = await (
File "/tmp/test-sso/venv/lib/python3.10/site-packages/aiobotocore/credentials.py", line 951, in load_credentials
creds = await provider.load()
File "/tmp/test-sso/venv/lib/python3.10/site-packages/aiobotocore/credentials.py", line 1037, in load
sso_config = self._load_sso_config()
File "/tmp/test-sso/venv/lib/python3.10/site-packages/botocore/credentials.py", line 2236, in _load_sso_config
raise InvalidConfigError(
botocore.exceptions.InvalidConfigError: The profile "mlengineer" is configured to use SSO but is missing required configuration: sso_start_url, sso_region
This is very inconvenient because now I have to export my AWS environment variables every time I want to deal with anything related to aiobotocore.
Checklist
I have reproduced in environment where pip check passes without errors
I have provided pip freeze results
I have provided sample code or detailed way to reproduce
I have tried the same code in botocore to ensure this is an aiobotocore specific issue
I have tried similar code in aiohttp to ensure this is is an aiobotocore specific issue
I have checked the latest and older versions of aiobotocore/aiohttp/python to see if this is a regression / injection
You must first have a working SSO config with aws configure sso and aws sso login with the latest AWS CLI. This will create an invalid configuration for aiobotocore.
The exception is happening in the botocore library itself. I've bisected the botocore version to find where it starts working, and I can state that botocore==1.29.10 is the first version that starts working with the new SSO config scheme.
The text was updated successfully, but these errors were encountered:
Describe the bug
After an update on AWS CLI and reconfiguring my SSO session, I've started getting
InvalidConfigError
on projects using aiobotocore because of the botocore version. The exception is as follows:This is very inconvenient because now I have to export my AWS environment variables every time I want to deal with anything related to aiobotocore.
Checklist
pip check
passes without errorspip freeze
resultspip freeze results
Environment:
Sample code
Additional context
You must first have a working SSO config with
aws configure sso
andaws sso login
with the latest AWS CLI. This will create an invalid configuration for aiobotocore.The exception is happening in the
botocore
library itself. I've bisected the botocore version to find where it starts working, and I can state thatbotocore==1.29.10
is the first version that starts working with the new SSO config scheme.The text was updated successfully, but these errors were encountered: