Merge pull request #878 from Hestia-Homes/deploy-fastapi-with-terraform

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:04:17 +00:00 committed by GitHub
commit c8d641fe05
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