Copy-ready commandaws sts get-caller-identity
aws sts get-caller-identityRequirements and permissions
- Requirements
- AWS CLI v2
- Permissions
- AWS IAM permissions vary
- Last reviewed
- 2026-07-31
Examples
Basic example
Display the current AWS identity.
aws sts get-caller-identityCommon errors
Command not found
Confirm AWS CLI v2 is installed and available in your current shell.