CmdID

CmdID / Commands

aws-sso

Manage access to AWS resources using Single Sign-On (SSO) credentials. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Start SSO session and refresh access tokens (requires setup using aws configure sso)

aws sso loginIdentify

End SSO session and clear cached access tokens

aws sso logoutIdentify

List 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 reference

List 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 reference

Retrieve 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