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.
More on CI/CD and Automation
Why run Terraform from a pipeline instead of laptops?BeginnerWhat stages does a good Terraform pull-request pipeline have?BeginnerHow do you make sure the apply runs exactly what was reviewed?IntermediateHow do you serialize applies to the same stack in CI?AdvancedShow a minimal GitHub Actions workflow for plan on PR.BeginnerHow does OIDC authentication from GitHub Actions to AWS work?Intermediate