diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 355d141..105fe07 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -100,13 +100,14 @@ jobs: run: | params=( apps core rds/${{ vars.RDS_PARAMETER_NAME }} ) for param in ${params[@]}; do - aws ssm get-parameters-by-path \ + values=$(aws ssm get-parameters-by-path \ --path "/$param/" \ --recursive \ --output json \ --query 'Parameters[*]' \ - | jq '. |= map({ (.Name | split("/")[-1]): .Value }) | add' \ - >> ${ENVIRONMENT}.${param/\//-}.auto.tfvars.json + | jq '. |= map({ (.Name | split("/")[-1]): .Value }) | add') + echo "$ENVIRONMENT.${param/\//-}.auto.tfvars.json" + echo "$values" done - name: Expose github environment as shell variables