Confirm which account, role, or user is active.
Section: Configuration and Profiles
Show current caller identity
bash
bash
aws sts get-caller-identityExplanation
One of the most useful commands for validating the currently active credentials.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Configuration and Profiles
Run interactive configure
Set credentials, region, and output format interactively.
Configure IAM Identity Center (SSO)
Interactively create an SSO-backed profile.