Skip to content

Profile

AWS Profile

Normally, we use aws configure to manage the profile.
But we can skip that by using export command.

export AWS_ACCESS_KEY_ID="AKIAXXXXXXXXXXXXXXXX"
export AWS_SECRET_ACCESS_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
export AWS_DEFAULT_REGION="us-west-2"
Combine this with direnv to set .envrc under specific directory.
Verify this with aws sts get-caller-identity