aws sso4 CLI commands available for AWS SSO.
| Command | API Operation | Sample |
|---|---|---|
get-role-credentialsReturns the STS short-term credentials for a given role name that is assigned to the user. | GetRoleCredentials | |
list-account-rolesLists all roles that are assigned to the user for a given AWS account. | ListAccountRoles | |
list-accountsLists all AWS accounts assigned to the user. These AWS accounts are assigned by the administrator of the account. For more information, see Assign User Access in the IAM Identity Center User Guide. This operation returns a paginated response. | ListAccounts | |
logoutRemoves the locally stored SSO tokens from the client-side cache and sends an API call to the IAM Identity Center service to invalidate the corresponding server-side IAM Identity Center sign in session. If a user uses IAM Identity Center to access the AWS CLI, the user’s IAM Identity Center sign in | Logout |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterSSO