Skip to content

Commit 1191845

Browse files
committed
Deploy upload again.
1 parent 8a0dbc6 commit 1191845

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
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: |
@@ -82,9 +83,6 @@ jobs:
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 }} \
@@ -96,7 +94,7 @@ jobs:
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

0 commit comments

Comments
 (0)