Ravi Sir's Cards › AWS
Profiles and SSO
This revision card explains Profiles and SSO. It starts from the need that one laptop, many accounts: dev, test, prod. Mixing them is dangerous. A profile is a named set of credentials and region in ~/.aws/config. The how-to section notes aws configure sso , then aws sso login --profile dev. An example on the card is check: aws sts get-caller-identity --profile dev.
Read card text
What this card says
Why do we need it?
One laptop, many accounts: dev, test, prod. Mixing them is dangerous.
What is it?
A profile is a named set of credentials and region in ~/.aws/config.
--profile dev
How to do it
aws configure sso → aws sso login --profile dev.
Example
Check: aws sts get-caller-identity --profile dev.
aws sts get-caller-identity