Skip to content

Commit

Permalink
test.yml: export to tfvars
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Dec 8, 2023
1 parent c9d297d commit 9c1a86c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c1a86c

Please sign in to comment.