From 089b10b37cd9dcd6e157d5b1d4136ccfe7cbfabc Mon Sep 17 00:00:00 2001 From: Eduardo Bellido Bellido Date: Sat, 27 Oct 2018 23:01:35 +0200 Subject: [PATCH] Update AWS variable name AWS_DEFAULT_PROFILE is deprecated, AWS_PROFILE is the correct one now. +info: https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html --- plugins/available/aws.plugin.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/available/aws.plugin.bash b/plugins/available/aws.plugin.bash index 1519f77b..a8941e07 100644 --- a/plugins/available/aws.plugin.bash +++ b/plugins/available/aws.plugin.bash @@ -72,14 +72,14 @@ function __awskeys_export { export "$(echo ${key} | tr [:lower:] [:upper:])=${p_key#*=}" done fi - export AWS_DEFAULT_PROFILE="$1" + export AWS_PROFILE="$1" else echo "Profile $1 not found in credentials file" fi } function __awskeys_unset { - unset AWS_DEFAULT_PROFILE AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY + unset AWS_PROFILE AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY } function __awskeys_comp {