aws-sso
Manage access to AWS resources using Single Sign-On (SSO) credentials. tldr-pages
On several platforms
Several platforms
Start SSO session and refresh access tokens (requires setup using aws configure sso)
aws sso loginIdentifyEnd SSO session and clear cached access tokens
aws sso logoutIdentifyList all AWS accounts accessible to the user
aws sso list-accounts --access-token tokenIdentify--access-tokenThe token issued by the CreateToken API call. AWS CLI referenceList all roles accessible to the user for a given AWS account
aws sso list-account-roles --account-id account --access-token tokenIdentify--account-idThe identifier for the AWS account that is assigned to the user. AWS CLI reference--access-tokenThe token issued by the CreateToken API call. AWS CLI referenceRetrieve short-term credentials for a specific account
aws sso get-role-credentials --account-id account --role-name role --access-token tokenIdentify--account-idThe identifier for the AWS account that is assigned to the user. AWS CLI reference--role-nameThe friendly name of the role that is assigned to the user. AWS CLI reference--access-tokenThe token issued by the CreateToken API call. AWS CLI reference