TF_IN_AUTOMATION
An environment variable that tells Terraform it is running in a pipeline, so it leaves out hints about which command to type next.
In more detail
Set it to any non-empty value, such as 1. Terraform then drops suggestions like running terraform apply after a plan, which only confuse a pipeline log. It changes the wording of the output, not what Terraform does, so pipelines still pass -input=false to stop Terraform waiting for an answer.
Example
export TF_IN_AUTOMATION=1Related terms
- environment variable — A named setting such as PORT=8000 that a program reads from its surroundings when it starts.
- -input=false — The option that stops Terraform from asking any interactive question, so an automated run fails instead of hanging forever.
- continuous integration — Automatically building and testing every change as soon as it is pushed, so problems are caught early.
Taught in
- Running Terraform In CI — Infrastructure as Code with Terraform