A

AWS CLI

CLI discovered

Details
Command
aws
Docs
https://docs.amazonaws.cn/en_us/cli/latest/userguide/getting-started-install.html
Authentication
AWS China programmatic credentials (access key ID + secret access key, optionally session token) compound discovered Get key ↗
$ aws configure

Sign up for an AWS China account via AWS China signup and create programmatic access credentials in IAM as described in Using Amazon security credentials for programmatic access. For long-term access, create an access key pair (aws_access_key_id + aws_secret_access_key). For temporary credentials, obtain short-term credentials that include aws_access_key_id, aws_secret_access_key, and aws_session_token. AWS signs API requests with SigV4/SigV4a using these values.

AWS IAM Identity Center session for CLI oauth2 discovered $ aws configure sso && aws sso login

Acquired by the CLI — running aws configure sso && aws sso login opens the auth flow and stores the credential.