Disable Terraform interactive prompts during apply & plan (#1467)

This commit is contained in:
Anthony Roussel
2022-04-10 15:29:47 +02:00
committed by GitHub
parent 31b35634e1
commit d80712faf4
+2 -2
View File
@@ -82,10 +82,10 @@ jobs:
# Generates an execution plan for Terraform
- name: Terraform Plan
run: terraform plan
run: terraform plan -input=false
# On push to $default-branch, build or change infrastructure according to Terraform configuration files
# Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks
- name: Terraform Apply
if: github.ref == 'refs/heads/$default-branch' && github.event_name == 'push'
run: terraform apply -auto-approve
run: terraform apply -auto-approve -input=false