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 "/*" ```