File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Reusable workflow to apply Terraform
1+ name : Reusable - Terraform apply
22
33on :
44 workflow_call :
@@ -122,9 +122,9 @@ jobs:
122122 - name : Terraform validate
123123 run : terraform validate
124124 - name : Terraform plan
125- run : terraform plan -out=plan.tfplan ${{ inputs.terraform-var-flags }}
125+ run : terraform plan -input=false - out=plan.tfplan ${{ inputs.terraform-var-flags }}
126126 - name : Terraform apply
127- run : terraform apply -auto-approve plan.tfplan ${{ inputs.terraform-var-flags }}
127+ run : terraform apply -auto-approve plan.tfplan
128128 env :
129129 TF_HTTP_ADDRESS : " http://localhost:8080/${{ secrets.tfbackend-tenant }}/state/${{ inputs.tfbackend-project }}"
130130 TF_HTTP_LOCK_ADDRESS : " http://localhost:8080/${{ secrets.tfbackend-tenant }}/state/${{ inputs.tfbackend-project }}/lock"
Original file line number Diff line number Diff line change 1- name : Reusable workflow to validate Terraform project
1+ name : Reusable - Terraform validate
22
33on :
44 workflow_call :
You can’t perform that action at this time.
0 commit comments