From ec9760820762eefc02435af00b9bc4e8ac2e865f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Kaunism=C3=A4ki?= Date: Tue, 22 Aug 2023 08:38:54 +0300 Subject: [PATCH] subtle bug in AWS CI/CD --- src/content/docs/en/guides/deploy/aws.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/aws.mdx b/src/content/docs/en/guides/deploy/aws.mdx index a31f175e1e946..f2392252444c1 100644 --- a/src/content/docs/en/guides/deploy/aws.mdx +++ b/src/content/docs/en/guides/deploy/aws.mdx @@ -201,6 +201,7 @@ There are many ways to set up continuous deployment for AWS. One possibility for "Action": [ "s3:PutObject", "s3:ListBucket", + "s3:DeleteObject", "cloudfront:CreateInvalidation" ], "Resource": [ @@ -246,7 +247,7 @@ There are many ways to set up continuous deployment for AWS. One possibility for - name: Build application run: npm run build - name: Deploy to S3 - run: aws s3 sync ./dist/ s3://${{ secrets.BUCKET_ID }} + run: aws s3 sync --delete ./dist/ s3://${{ secrets.BUCKET_ID }} - name: Create CloudFront invalidation run: aws cloudfront create-invalidation --distribution-id ${{ secrets.DISTRIBUTION_ID }} --paths "/*" ```