e4946ef9f94360dd4767c2e58274cd62057822a5

Author
Vargas, Jorge L <jorge.vargas@thermofisher.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

aws: change AWS_DEFAULT_PROFILE to AWS_PROFILE

The environment variable name used to be AWS_DEFAULT_PROFILE but the
CLI documentation now only mentions AWS_PROFILE.

https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html

It seems like the CLI was the only tool using AWS_DEFAULT_PROFILE, and
all the AWS SDKs used AWS_PROFILE, so they standardized on it.

https://onetechnical.wordpress.com/2016/10/07/the-curious-case-of-aws_default_profile/

Note: still left AWS_DEFAULT_PROFILE on the method to set the profile to
maintain backwards compatibility.

Close #7354

Diff

 1diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh
 2index 183b0f226a425a63f56c072dab68196c6aa604ca..252c0d9c11d731d4536b9f00d64eb5444e14e416 100644
 3--- a/plugins/aws/aws.plugin.zsh
 4+++ b/plugins/aws/aws.plugin.zsh
 5@@ -24,7 +24,7 @@ _awscli-homebrew-installed() {
 6 export AWS_HOME=~/.aws
 7 
 8 function agp {
 9-  echo $AWS_DEFAULT_PROFILE
10+  echo $AWS_PROFILE
11 }
12 
13 function asp {
14@@ -33,7 +33,7 @@ function asp {
15   export AWS_DEFAULT_PROFILE=$1
16   export AWS_PROFILE=$1
17 
18-  export RPROMPT="<aws:$AWS_DEFAULT_PROFILE>$rprompt"
19+  export RPROMPT="<aws:$AWS_PROFILE>$rprompt"
20 }
21 
22 function aws_profiles {