File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 6969 run : |
7070 echo "Deploying infrastructure with image: ${{ env.IMAGE_URI }}"
7171
72+ # The secret is formatted as `subnet-xxxx1,subnet-xxxx2` so we have to make sure the CLI recognizes
73+ # it as a comma separated list.
74+
75+ PRIVATE_SUBNETS="${{ secrets.PRIVATE_SUBNETS }}"
76+ PRIVATE_SUBNETS_ESCAPED="${PRIVATE_SUBNETS//,/\\,}"
77+
7278 aws cloudformation deploy \
7379 --template-file infrastructure/cloudformation-template.yaml \
7480 --stack-name ${{ env.STACK_NAME }} \
8086 RDSUsername=${{ secrets.RDS_USERNAME }} \
8187 RDSPassword=${{ secrets.RDS_PASSWORD }} \
8288 VPCId=${{ secrets.VPC_ID }} \
83- PrivateSubnets=${{ secrets.PRIVATE_SUBNETS }} \
89+ PrivateSubnets=${{ secrets.PRIVATE_SUBNETS_ESCAPED }} \
8490 --capabilities CAPABILITY_NAMED_IAM \
8591 --region ${{ env.AWS_REGION }} \
8692 --no-fail-on-empty-changeset
You can’t perform that action at this time.
0 commit comments