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

Compatibility issue with aws config sso_profile #1948

Open
Shion1305 opened this issue Nov 8, 2024 · 2 comments
Open

Compatibility issue with aws config sso_profile #1948

Shion1305 opened this issue Nov 8, 2024 · 2 comments

Comments

@Shion1305
Copy link

aws configure sso generates .aws/config as following, but terraformer is not compatible with this format.

[profile prd]
sso_session = prd
sso_account_id = xxxxxxxxx
sso_role_name = xxxxxxxxx
region = ap-northeast-1
output = json
[sso-session prd]
sso_start_url = https://d-xxxxxxxxx.awsapps.com/start/#
sso_region = us-east-1
sso_registration_scopes = sso:account:access

If you rewrite this config file like following, it does work.

[profile prd]
sso_account_id = xxxxxxxxxx
sso_role_name = xxxxxxxxxxx
region = ap-northeast-1
output = json
sso_start_url = https://d-xxxxxxxxxx.awsapps.com/start/#
sso_region = us-east-1
@Shion1305 Shion1305 changed the title Compatibility issue with latest aws config with `sso_profile Compatibility issue with aws config sso_profile Nov 8, 2024
@stephenpope
Copy link

Just adding that I had the exact same problem when using a SSO login and I agree that it seems sensitive to the order and options in the .aws/config

Thanks for the hint anyway @Shion1305 :)

@celesteking
Copy link

celesteking commented Dec 5, 2024

Still doesn't work. Removing sso_session = makes plugin.terraform-provider-aws_v5.80.0_x5 thow an error about inability to read the session file.

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

3 participants