diff --git a/getParamStore.sh b/getParamStore.sh index 1d789c9..cd6ad01 100644 --- a/getParamStore.sh +++ b/getParamStore.sh @@ -39,8 +39,9 @@ function exportToFile() { #restore delimiter IFS=$old_IFS } + for var in $ARGUMENTS do PARAMSTORE=`aws ssm get-parameters-by-path --path "$var" --no-paginate --recursive | jq -r '.Parameters'` exportToFile "$PARAMSTORE" -done \ No newline at end of file +done diff --git a/switchRole.sh b/switchRole.sh index c5d6096..3ccf7e4 100644 --- a/switchRole.sh +++ b/switchRole.sh @@ -19,4 +19,4 @@ export AWS_SECRET_ACCESS_KEY=`cat assume-role-output.txt | jq -r '.Credentials.S export AWS_SESSION_TOKEN=`cat assume-role-output.txt | jq -r '.Credentials.SessionToken'` export AWS_DEFAULT_REGION=$2 -echo "End of Switch Role" \ No newline at end of file +echo "End of Switch Role"