aws sts get-caller-identity
SafeWho am I (AWS)
aws sts get-caller-identity
Confirms which AWS account/role the current credentials map to.
Examples
aws sts get-caller-identityShow account and ARN
Syntax
aws sts get-caller-identity
Before you run it
Read-only.
Related commands
- aws ec2 describe-instancesList EC2
- az login / account showAzure auth
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store