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.
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.