From 7452fba476ec101c3c31fdf6f1e9ae34f22e0fb0 Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Mon, 17 Jun 2024 19:24:00 -0700 Subject: [PATCH] create invalidation --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 215cf9dc..d6038673 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -63,6 +63,7 @@ jobs: run: | aws s3 rm s3://${{ secrets.AWS_FRONTEND_S3_BUCKET }} --recursive aws s3 cp frontend/build s3://${{ secrets.AWS_FRONTEND_S3_BUCKET }} --recursive + aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*" build-and-deploy-backend: runs-on: ubuntu-latest @@ -77,8 +78,8 @@ jobs: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: - role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_ROLE_NAME }} - aws-region: ${{ secrets.AWS_REGION }} + role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_ROLE_NAME }} + aws-region: ${{ secrets.AWS_REGION }} - name: Log in to Amazon ECR id: login-ecr