snippetbashTip
aws sso — Manage access to AWS resources using Single Sign-On (SSO) credentials. More information: <https://do
Viewed 0 times
resourcescommandaccessaws ssoclimanageusingaws
Problem
How to use the
aws sso command: Manage access to AWS resources using Single Sign-On (SSO) credentials. More information: <https://docs.aws.amazon.com/cli/latest/reference/sso/>.Solution
aws sso — Manage access to AWS resources using Single Sign-On (SSO) credentials. More information: <https://docs.aws.amazon.com/cli/latest/reference/sso/>.Start SSO session and refresh access tokens. Requires setup using
aws configure sso:aws sso loginEnd SSO session and clear cached access tokens:
aws sso logoutList all AWS accounts accessible to the user:
aws sso list-accountsList 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}}Code Snippets
Start SSO session and refresh access tokens. Requires setup using `aws configure sso`
aws sso loginEnd SSO session and clear cached access tokens
aws sso logoutList all AWS accounts accessible to the user
aws sso list-accountsList 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}}Context
tldr-pages: common/aws sso
Revisions (0)
No revisions yet.