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=1

Related terms

Taught in

References