The AWS CLI v2 is the fastest way to explore and automate AWS. Credentials are resolved in a fixed provider chain: Environment variables (AWSACCESSKEYID, AWSSECRETACCESSKEY, AWSSESSIONTOKEN) IAM Identity Center (SSO) / profiles in /.aws/config and /.aws/credentials Container credentials (ECS task role) or instance profile (EC2 role) Task Command Configure SSO login aws configure sso then aws sso login --profile dev Who am I? aws sts get-caller-identity Pick a profile --profile prod or export AWSPROFILE=prod Pick a region --region eu-west-1 or AWSREGION Filter output --query (JMESPath) + --output table/json/text Assume a role aws sts assume-role or rolearn + sourceprofile in config Avoid long-lived access keys. Use SSO for humans and IAM roles for workloads (EC2, Lambda, ECS, GitHub…