Skip to content

Commit 8f30ccd

Browse files
committed
fix showing of region list
1 parent f7d2a2e commit 8f30ccd

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

template/awscli/setup_aws_configure

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ do
4848
done
4949
unset LINE
5050

51+
# AWS Configure
52+
aws configure set aws_access_key_id "$AWS_ACCESS_KEY_ID"
53+
aws configure set aws_secret_access_key "$AWS_SECRET_ACCESS_KEY"
54+
aws configure set default.region "$DEFAULT_REGION"
55+
aws configure set default.output json
56+
5157
# set REGION
5258
echo "Supported regions"
5359
echo "-------------------"
@@ -61,10 +67,7 @@ if [ -z "$REGION" ]; then
6167
REGION=$DEFAULT_REGION
6268
fi
6369

64-
# AWS Configure
65-
aws configure set aws_access_key_id "$AWS_ACCESS_KEY_ID"
66-
aws configure set aws_secret_access_key "$AWS_SECRET_ACCESS_KEY"
67-
aws configure set default.region "$DEFAULT_REGION"
68-
aws configure set default.output json
70+
# Set region
71+
aws configure set default.region "$REGION"
6972

7073
exit 0

0 commit comments

Comments
 (0)