Fix profile in aws cli

This commit is contained in:
phahulin 2018-05-29 20:28:43 +03:00
parent 6266b1e841
commit f0cb093596
1 changed files with 2 additions and 2 deletions

View File

@ -18,10 +18,10 @@ function fetch_ssm_with_token() {
sleep 1
if [ -z "$1" ]; then
log "(fetch_ssm_with_token) Calling ssm without token"
parameters_json_tmp=$(aws ssm get-parameters-by-path --region "$REGION" --path "/$PREFIX/$CHAIN" --profile infra-staging)
parameters_json_tmp=$(aws ssm get-parameters-by-path --region "$REGION" --path "/$PREFIX/$CHAIN")
else
log "(fetch_ssm_with_token) Calling ssm with token"
parameters_json_tmp=$(aws ssm get-parameters-by-path --region "$REGION" --path "/$PREFIX/$CHAIN" --next-token "$1" --profile infra-staging)
parameters_json_tmp=$(aws ssm get-parameters-by-path --region "$REGION" --path "/$PREFIX/$CHAIN" --next-token "$1")
fi
next_ssm_token=$(echo "$parameters_json_tmp" | jq '.NextToken' --raw-output)