commands.sh

aws sso

all

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

More info →

Examples (5)

Start SSO session and refresh access tokens. Requires setup using `aws configure sso`

End SSO session and clear cached access tokens

List all AWS accounts accessible to the user

aws sso list-accounts

List all roles accessible to the user for a given AWS account

aws sso list-account-roles --account-id account --access-token token

Retrieve short-term credentials for a specific account

aws sso get-role-credentials --account-id account --role-name role --access-token token
made by @shridhargupta | data from tldr-pages