From 14c2c9b529e8fc23b3727dda8cdef5427b42a913 Mon Sep 17 00:00:00 2001 From: Jo Date: Thu, 25 Jul 2024 15:24:41 -0400 Subject: [PATCH] Fix aws provider issue (#582) * added terragrunt init -upgrade * added terragrunt init -upgrade --- .github/workflows/deploy-production.yml | 2 ++ .github/workflows/deploy-staging.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index fa94b444f..d42e362b2 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -110,6 +110,7 @@ jobs: id: output-bucket-name working-directory: ./tofu/environments/prod/services/frontend-infra run: | + terragrunt init -upgrade output=$(terragrunt output bucket_name | tr -d '"') echo bucket=$output >> $GITHUB_OUTPUT @@ -117,6 +118,7 @@ jobs: id: output-cloudfront-distro working-directory: ./tofu/environments/prod/services/frontend-infra run: | + terragrunt init -upgrade output=$(terragrunt output cloudfront_id) echo cloudfront_id=$output >> $GITHUB_OUTPUT diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 4e55dc9de..0cc0db0fa 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -180,6 +180,7 @@ jobs: id: get-frontend-resources working-directory: ./tofu/environments/stage/services/frontend-infra run: | + terragrunt init -upgrade echo "bucket=$(terragrunt output bucket_name | tr -d '"')" >> $GITHUB_OUTPUT echo "distribution=$(terragrunt output cloudfront_id)" >> $GITHUB_OUTPUT