LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

aws-sso

Authenticate with IAM Identity Center for federated access.

TLDR

Log in to AWS SSO
$ aws sso login --profile [profile-name]
copy
Log out from AWS SSO
$ aws sso logout
copy
List AWS accounts available to the user
$ aws sso list-accounts --access-token [token]
copy
List roles available in an account
$ aws sso list-account-roles --account-id [account-id] --access-token [token]
copy
Get temporary credentials for a role
$ aws sso get-role-credentials --account-id [account-id] --role-name [role-name] --access-token [token]
copy
Configure an SSO profile interactively
$ aws configure sso
copy

SYNOPSIS

aws sso subcommand [options]

DESCRIPTION

aws sso is the AWS CLI interface for AWS IAM Identity Center (formerly AWS Single Sign-On), enabling federated access to AWS accounts and applications through a centralized identity source.The SSO commands allow users to authenticate once and access multiple AWS accounts and applications without managing separate credentials for each account.

CONFIGURATION

~/.aws/config

SSO profile settings including ssostarturl, ssoregion, ssoaccountid, and ssorole_name.

SUBCOMMANDS

login

Initiate SSO login through the browser to obtain an access token
logout
Terminate the current SSO session and invalidate cached credentials
list-accounts
List AWS accounts available to the authenticated user
list-account-roles
List IAM roles available in a specific AWS account
get-role-credentials
Retrieve temporary AWS credentials for assuming a role

INSTALL

sudo dnf install aws
copy
sudo pacman -S aws-cli
copy
sudo apk add aws-cli
copy
sudo zypper install aws-cli
copy

CAVEATS

SSO login requires browser access for the authorization flow. The access token is cached locally and has a limited lifetime (typically 8-12 hours). You must configure an SSO profile in your AWS config file before using aws sso login. The API namespace retains the name "sso" for backward compatibility even though the service was renamed to IAM Identity Center.

HISTORY

AWS Single Sign-On launched in December 2017 to simplify access management across AWS accounts. It was renamed to AWS IAM Identity Center in July 2022 to better reflect its integration with IAM and its expanded capabilities.

SEE ALSO

aws(1), aws-sts(1), aws-iam(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid