https://docs.aws.amazon.com/ko_kr/cli/latest/userguide/sso-configure-profile-token.html
aws configure sso
명령을 실행$ aws configure sso
SSO session name (Recommended): my-sso
SSO start URL [None]: https://my-sso-portal.awsapps.com/start
SSO region [None]: us-east-1
SSO registration scopes [None]: sso:account:access
There are 2 AWS accounts available to you.
> DeveloperAccount, developer-account-admin@example.com (123456789011)
ProductionAccount, production-account-admin@example.com (123456789022)
Using the account ID 123456789011
There are 2 roles available to you.
> ReadOnly
FullAccess
CLI default client Region [None]: us-west-2<ENTER>
CLI default output format [None]: json<ENTER>
CLI profile name [123456789011_ReadOnly]: my-dev-profile<ENTER>
~/.aws/config
에서 sso-session 섹션과 이름이 지정된 프로필이 생성[profile my-dev-profile]
sso_session = my-sso
sso_account_id = 123456789011
sso_role_name = readOnly
region = us-west-2
output = json
[sso-session my-sso]
sso_region = us-east-1
sso_start_url = https://my-sso-portal.awsapps.com/start
sso_registration_scopes = sso:account:access
aws sso login
명령을 사용하여 로그인aws sso login --sso-session my-sso
aws sso login --profile my-dev-profile
https://docs.aws.amazon.com/ko_kr/cli/latest/userguide/cli-configure-envvars.html