wallix / awless

A Mighty CLI for AWS
http://awless.io/
Apache License 2.0
4.97k stars 263 forks source link

Add support for AWS_PROFILE environment variable #206

Closed alewando closed 6 years ago

alewando commented 6 years ago

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 commented 6 years ago

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