Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for AWS_PROFILE environment variable #206

Merged
merged 1 commit into from
Jun 15, 2018

Conversation

alewando
Copy link
Contributor

This PR adds support for using the AWS_PROFILE environment variable to specify which credential profile to use. This is in line with the AWS CLI and most other SDKs (boto, for example). Use of AWS_DEFAULT_PROFILE is deprecated, and AWS_PROFILE has been preferred for a long while now (see https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html).
Similar to the support in AWS_CLI, though, AWS_PROFILE has a lower precedence than AWS_DEFAULT_PROFILE (for backwards compatibility). So if both are set, then AWS_DEFAULT_PROFILE is honored.

@simcap
Copy link
Contributor

simcap commented Apr 14, 2018

Ok, thanks for that @alewando . I will double check that and merge if all good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants