From ef545a52e8cc4cd0a88b622e80b27e51a275dc28 Mon Sep 17 00:00:00 2001 From: Sumita Canopas Date: Mon, 19 Feb 2024 15:56:29 +0530 Subject: [PATCH] Add cloudfront distribution --- .github/workflows/deploy-frontend-dev.yml | 4 ++-- infrastructure/frontend.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-frontend-dev.yml b/.github/workflows/deploy-frontend-dev.yml index a6ba777a6..80e4e9f8b 100644 --- a/.github/workflows/deploy-frontend-dev.yml +++ b/.github/workflows/deploy-frontend-dev.yml @@ -48,5 +48,5 @@ jobs: parameter-overrides: >- EnvName=dev, ZipFileName=canopas_website_SSR_dev_${{ github.sha }}-${{ github.run_attempt }}.zip, - OriginAccessControlId=${{ secrets.ORIGIN_ACCESS_CONTROL_ID_DEV }}, - OriginAccessIdentity=${{ secrets.ORIGIN_ACCESS_IDENTITY_DEV }} \ No newline at end of file + OriginAccessControlId=${{ secrets.ORIGIN_ACCESS_CONTROL_ID }}, + OriginAccessIdentity=${{ secrets.ORIGIN_ACCESS_IDENTITY }} \ No newline at end of file diff --git a/infrastructure/frontend.yml b/infrastructure/frontend.yml index 0b8a1bc8b..dd9f9dd91 100644 --- a/infrastructure/frontend.yml +++ b/infrastructure/frontend.yml @@ -67,7 +67,7 @@ Resources: - TLSv1.2 - DomainName: canopas-website-ssr-dev.s3.amazonaws.com Id: StaticS3 - S3Origin: + S3OriginConfig: OriginAccessIdentity: ${OriginAccessIdentity} OriginAccessControlId: ${OriginAccessControlId} CustomOriginConfig: