Ravi Sir's Cards › AWS
Which credentials does the CLI use first?
This interview card answers: Which credentials does the CLI use first? A fixed order — command options, env vars, SSO/profile files, then container or EC2 role. Old env keys silently win and send you to the wrong account. The card’s suggested next step is to run aws configure list to see the source of each value.
Read card text
What this card says
What it is
A fixed order: command options, env vars, SSO/profile files, then container or EC2 role.
Why it matters
Old env keys silently win and send you to the wrong account.
AWS_ACCESS_KEY_ID
How / example
Run aws configure list to see the source of each value.
aws configure list