AdRoll / goamz

Fork of the GOAMZ version developed within Canonical with additional functionality with DynamoDB
https://wiki.ubuntu.com/goamz
Other
401 stars 213 forks source link

Use profiles when selecting credentials from ~/.aws/credentials #405

Open leedm777 opened 9 years ago

leedm777 commented 9 years ago

AWS tooling which reads credentials from ~/.aws/credentials also supports profile selection. This allows folks with multiple AWS accounts to select which account credentials they wish to use for particular tasks. This is usually specified by either configuration, with with the AWS_PROFILE or AWS_DEFAULT_PROFILE environment variables.

See http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-multiple-profiles

re: docker/distribution#1041

0xmohit commented 8 years ago

This appears to have been fixed in https://github.com/AdRoll/goamz/commit/677007167a3af6dcee5965751384b7e268c584ac.