Sign in through the AWS Command Line Interface
We recommend that you configure a user in IAM Identity Center if you plan to use the AWS Command Line Interface. The AWS access portal user interface makes it easy for IAM Identity Center users to select an AWS account and use the AWS CLI to get temporary security credentials. For more information about how to get these credentials, see Region availability for AWS Builder ID. You can also configure the AWS CLI directly to authenticate users with IAM Identity Center.
To sign in through the AWS CLI with IAM Identity Center credentials
-
Check that you've completed the Prerequisites.
-
If you're signing in for the first time, configure your profile with the
aws configure sso
wizard. -
After you configure your profile, run the following command, then follow the prompts in your terminal.
$
aws sso login --profile
my-profile
Additional information
If you want more information about signing-in using the command-line, refer to the following resources.
-
For details on using IAM Identity Center credentials, see Getting IAM Identity Center user credentials for the AWS CLI or AWS SDKs.
-
For details on configuration, see Configuring the AWS CLI to use IAM Identity Center.
-
For more details on the AWS CLI sign-in process, see Signing in and getting credentials.