Interview Prep/AWS/Rapid-Fire AWS CLI

How do you check which identity and account the CLI is using?

BeginnerProductionRapid-Fire AWS CLI
Answer
aws sts get-caller-identity
aws configure list                     # where each setting comes from
aws configure list-profiles
export AWS_PROFILE=prod-readonly       # switch profile for this shell
aws All AWS questions

More on Rapid-Fire AWS CLI