Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Created November 26, 2013 03:17
Show Gist options
  • Save tkuchiki/7652978 to your computer and use it in GitHub Desktop.
Save tkuchiki/7652978 to your computer and use it in GitHub Desktop.
aws-cli
# default path : ~/.aws/config
[default]
aws_access_key_id=<default access key>
aws_secret_access_key=<default secret key>
# Optional, to define default region for this profile.
region=ap-northeast-1
[profile testing]
aws_access_key_id=<testing access key>
aws_secret_access_key=<testing secret key>
region=us-west-1
export AWS_CONFIG_FILE=/path/to/config_file
# --region
export AWS_DEFAULT_REGION=ap-northeast-1
# --profile
export AWS_DEFAULT_PROFILE=testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment