terraformer icon indicating copy to clipboard operation
terraformer copied to clipboard

Compatibility issue with aws config `sso_profile`

Open Shion1305 opened this issue 1 year ago • 5 comments

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 avatar Nov 08 '24 05:11 Shion1305

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 :)

stephenpope avatar Nov 27 '24 09:11 stephenpope

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.

celesteking avatar Dec 05 '24 22:12 celesteking

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.

github-actions[bot] avatar Feb 06 '25 01:02 github-actions[bot]

This issue is not resolved, should not be closed.

Shion1305 avatar Feb 06 '25 02:02 Shion1305

+1

mani-sbab avatar Mar 05 '25 11:03 mani-sbab