Skip to content
New issue

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

'sso_start_url' not found in profile #72

Closed
proxy-hatch opened this issue Apr 17, 2023 · 4 comments
Closed

'sso_start_url' not found in profile #72

proxy-hatch opened this issue Apr 17, 2023 · 4 comments

Comments

@proxy-hatch
Copy link

Hello,

This is probably a simple fix:
After aws configure sso, my ~/.aws/config looks like this

[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

@pcolmer
Copy link
Contributor

pcolmer commented Apr 17, 2023

Which version of aws2-wrap are you using, please?

@proxy-hatch
Copy link
Author

I'm on the latest version

❯ aws2-wrap -v
aws2-wrap 1.3.0

@pcolmer
Copy link
Contributor

pcolmer commented Apr 17, 2023

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.

@proxy-hatch
Copy link
Author

Thanks! Upgrading did the trick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants