aws sts get-caller-identity
aws sts get-caller-identity [--profile <name>]
Risk: Safe
What it does
Shows who you are right now: your account number and your ARN.
When to use it
Before any change. Check you are not root, and in the right account.
Example
$ aws sts get-caller-identityAsk AWS: who am I?
$ aws sts get-caller-identity --profile my-dev-profileThe same, for one profile.
Learn it in: The AWS CLI and profiles · Official docs