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