From 20cc5a3059f5a7b0e29bcb62de08fbbf6cda1376 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Fri, 13 Mar 2026 15:00:46 +0000 Subject: [PATCH] dont try to use shared/.tfvars when deploying cloudfront cdn --- .github/workflows/deploy_terraform.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy_terraform.yml b/.github/workflows/deploy_terraform.yml index ec83479d..501fe30f 100644 --- a/.github/workflows/deploy_terraform.yml +++ b/.github/workflows/deploy_terraform.yml @@ -374,13 +374,18 @@ jobs: - name: Terraform Workspace working-directory: infrastructure/terraform/cdn - run: terraform workspace select ${STAGE} || terraform workspace new ${STAGE} + run: | + terraform workspace select $STAGE \ + || terraform workspace new $STAGE - name: Terraform Plan working-directory: infrastructure/terraform/cdn - run: terraform plan -var-file=${STAGE}.tfvars -out=tfplan + run: | + terraform plan \ + -var="stage=${STAGE}" \ + -out=tfplan - name: Terraform Apply if: env.TERRAFORM_APPLY == 'true' working-directory: infrastructure/terraform/cdn - run: terraform apply -auto-approve tfplan + run: terraform apply -auto-approve tfplan \ No newline at end of file