Merge pull request #879 from Hestia-Homes/main

Deploy fastapi with terraform: dont try to use shared/.tfvars when deploying cloudfront cdn
This commit is contained in:
Jun-te Kim 2026-03-13 15:06:37 +00:00 committed by GitHub
commit f22e069c66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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