diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 0463039..8c21524 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -71,9 +71,10 @@ jobs: "cd /var/www/app", "aws s3 cp s3://'"$CODE_BUCKET"'/'"$FILE_NAME"' app.zip --region '"$REGION"'", "unzip -o app.zip", + "sudo -u ec2-user npm ci", "chown -R ec2-user:ec2-user /var/www/app", - "sudo -u ec2-user /usr/local/bin/docker-compose up -d --build", - "sleep 15", + "sudo -u ec2-user /usr/local/bin/docker-compose up api postgres redis -d --build", + "sleep 30", "sudo -u ec2-user /usr/local/bin/docker-compose exec -T api npm run migration:run" ]' \ --region "$REGION" \ diff --git a/infra/lib/infra-stack.ts b/infra/lib/infra-stack.ts index 2260444..a07284b 100644 --- a/infra/lib/infra-stack.ts +++ b/infra/lib/infra-stack.ts @@ -426,6 +426,7 @@ export class InfraStack extends cdk.Stack { 'ssm:SendCommand', 'ssm:ListCommandInvocations', 'ssm:ListCommands', + 'ssm:GetCommandInvocation', ], resources: ['*'], }),