File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 7171 "cd /var/www/app",
7272 "aws s3 cp s3://'"$CODE_BUCKET"'/'"$FILE_NAME"' app.zip --region '"$REGION"'",
7373 "unzip -o app.zip",
74+ "sudo -u ec2-user npm ci",
7475 "chown -R ec2-user:ec2-user /var/www/app",
75- "sudo -u ec2-user /usr/local/bin/docker-compose up -d --build",
76- "sleep 15",
76+ "sudo -u ec2-user /usr/local/bin/docker-compose up api postgres redis -d --build",
77+ "sleep 30",
7778 "sudo -u ec2-user /usr/local/bin/docker-compose exec -T api npm run migration:run"
7879 ]' \
7980 --region "$REGION" \
Original file line number Diff line number Diff line change @@ -426,6 +426,7 @@ export class InfraStack extends cdk.Stack {
426426 'ssm:SendCommand' ,
427427 'ssm:ListCommandInvocations' ,
428428 'ssm:ListCommands' ,
429+ 'ssm:GetCommandInvocation' ,
429430 ] ,
430431 resources : [ '*' ] ,
431432 } ) ,
You can’t perform that action at this time.
0 commit comments