File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 7474 echo "ERROR: PRIVATE_SUBNETS is empty!"
7575 exit 1
7676 fi
77+ echo "SUBNET_LIST=subnet-0e66614ca7e9e7247,subnet-013f8ff069404c987" >> $GITHUB_ENV
7778
7879 - name : Deploy CloudFormation stack
7980 run : |
8283 # The secret is formatted as `subnet-xxxx1,subnet-xxxx2` so we have to make sure the CLI recognizes
8384 # it as a comma separated list.
8485
85- PRIVATE_SUBNETS="${{ secrets.PRIVATE_SUBNETS }}"
86- PRIVATE_SUBNETS_ESCAPED="${PRIVATE_SUBNETS//,/\\,}"
87-
8886 aws cloudformation deploy \
8987 --template-file infrastructure/cloudformation-template.yaml \
9088 --stack-name ${{ env.STACK_NAME }} \
9694 "RDSUsername=${{ secrets.RDS_USERNAME }}" \
9795 "RDSPassword=${{ secrets.RDS_PASSWORD }}" \
9896 "VPCId=${{ secrets.VPC_ID }}" \
99- "PrivateSubnets=${{ secrets.PRIVATE_SUBNETS }}" \
97+ "PrivateSubnets=${{ env.SUBNET_LIST }}" \
10098 --capabilities CAPABILITY_NAMED_IAM \
10199 --region ${{ env.AWS_REGION }} \
102100 --no-fail-on-empty-changeset
You can’t perform that action at this time.
0 commit comments