Compatibility issue with aws config `sso_profile`
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
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 :)
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.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is not resolved, should not be closed.
+1