Interview Prep/Terraform/CI/CD and Automation

Why use `-input=false` and `TF_IN_AUTOMATION`?

BeginnerProductionCI/CD and Automation
Answer

-input=false makes Terraform fail instead of waiting at a prompt for a missing variable, which would hang the job. TF_IN_AUTOMATION=1 removes interactive hints like "Run terraform apply" from the output. Both are standard in pipelines.

All Terraform questions Roadmap: Terraform in production

More on CI/CD and Automation