Skip to content

Commit

Permalink
Remove cloudfront distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Feb 19, 2024
1 parent c8596c6 commit 27d4b43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy-frontend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
cd .output/server && zip canopas_website_SSR_dev_${{ github.sha }}-${{ github.run_attempt }}.zip -r . && aws s3 cp canopas_website_SSR_dev_${{ github.sha }}-${{ github.run_attempt }}.zip s3://canopas-lambda-handlers && cd ../..
aws s3 sync --cache-control 'max-age=604800' --exclude *.html ./.output/public s3://canopas-website-ssr-dev
aws s3 sync ./.output/public s3://canopas-website-ssr-dev
aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID_DEV }} --paths "/sitemap.xml"
- name: Deploy cloudformation stack
id: canopas-website-dev-lambda-stack-frontend
Expand All @@ -47,6 +46,4 @@ jobs:
no-fail-on-empty-changeset: "1"
parameter-overrides: >-
EnvName=dev,
ZipFileName=canopas_website_SSR_dev_${{ github.sha }}-${{ github.run_attempt }}.zip,
OriginAccessControlId=${{ secrets.ORIGIN_ACCESS_CONTROL_ID }},
OriginAccessIdentity=${{ secrets.ORIGIN_ACCESS_IDENTITY }}
ZipFileName=canopas_website_SSR_dev_${{ github.sha }}-${{ github.run_attempt }}.zip
6 changes: 0 additions & 6 deletions infrastructure/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ Parameters:
ZipFileName:
Type: String
Description: Name of the zip file.
OriginAccessControlId:
Type: String
Description: OriginAccessControl for S3 origin.
OriginAccessIdentity:
Type: String
Description: OriginAccessIdentity for S3 origin.


Resources:
Expand Down

0 comments on commit 27d4b43

Please sign in to comment.