We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
This is probably a simple fix: After aws configure sso, my ~/.aws/config looks like this
~/.aws/config
[profile AdministratorAccess-xxxxxxxxxxxx] sso_session = xx-xyz sso_account_id = xxxxxxxxxxxx sso_role_name = AdministratorAccess region = us-west-2 output = json [sso-session xx-xyz] sso_start_url = https://d-xxxxxxxxxx.awsapps.com/start sso_region = us-west-2 sso_registration_scopes = sso:account:access
Running aws2-wrap gives error
'sso_start_url' not found in profile: {'sso_session': 'vest-gamma', 'sso_account_id': 'xxxxxxxxxxxx', 'sso_role_name': 'AdministratorAccess', 'region': 'us-west-2', 'output': 'json', 'profile_name': 'AdministratorAccess-xxxxxxxxxxxx'}
Changing my config file as below fixes it (copy sso_ rows)
[profile AdministratorAccess-xxxxxxxxxxxx] sso_session = xx-xyz sso_start_url = https://d-xxxxxxxxxx.awsapps.com/start sso_region = us-west-2 sso_registration_scopes = sso:account:access sso_account_id = xxxxxxxxxxxx sso_role_name = AdministratorAccess region = us-west-2 output = json [sso-session xx-xyz] sso_start_url = https://d-xxxxxxxxxx.awsapps.com/start sso_region = us-west-2 sso_registration_scopes = sso:account:access
Issue seems to be aws2-wrap unable to read the [sso-session] profile
[sso-session] profile
The text was updated successfully, but these errors were encountered:
Which version of aws2-wrap are you using, please?
Sorry, something went wrong.
I'm on the latest version
❯ aws2-wrap -v aws2-wrap 1.3.0
Sorry, but that isn't the latest version. I should have updated the releases information.
v1.3.1 was released in November 2022 (https://pypi.org/project/aws2-wrap/#history)
I've checked that version and aws2-wrap --profile <profile> aws sts get-caller-identity definitely works with sso_session.
aws2-wrap --profile <profile> aws sts get-caller-identity
sso_session
Thanks! Upgrading did the trick!
No branches or pull requests
Hello,
This is probably a simple fix:
After aws configure sso, my
~/.aws/config
looks like thisRunning aws2-wrap gives error
Changing my config file as below fixes it (copy sso_ rows)
Issue seems to be aws2-wrap unable to read the
[sso-session] profile
The text was updated successfully, but these errors were encountered: