michael sew
02/19/2021, 9:23 PM~/.aws/config
[profile account1.readonly]
sso_start_url = <https://mycompanysso.awsapps.com/start/#/>
sso_region = us-west-2
sso_account_id = 1111111111
sso_role_name = AWSReadOnly
region = us-east-1
[profile account2.readonly]
sso_start_url = <https://mycompanysso.awsapps.com/start/#/>
sso_region = us-west-2
sso_account_id = 2222222222
sso_role_name = AWSReadOnly
region = us-east-1
...
..then sign on to EVERY profile manually:
aws sso login --profile account1.readonly
(opens by browser, I have to enter the 8-character code)
aws sso login --profile account2.readonly
# repeat for DOZENS of accounts!!!
There has to be a better way.loren
02/19/2021, 9:26 PMstart_url) once per session, then every sso profile that used that same endpoint would be available... no? i.e...
aws sso login --profile account1.readonly
aws s3 ls --profile account2.readonlymichael sew
02/19/2021, 10:21 PM~/.aws/config file with all hundred accounts.role's I have.
and my SSO login should work for the default 12 hours.loren
02/19/2021, 10:29 PMloren
02/19/2021, 10:34 PMzeid
02/27/2021, 9:53 AM