-input=false

The option that stops Terraform from asking any interactive question, so an automated run fails instead of hanging forever.

In more detail

Every pipeline should pass it, or set TF_INPUT=0, to init, plan and apply. With it, a variable that has no value and no default is an error rather than a prompt.

Example

terraform init -input=false

Related terms

Taught in

References

Certification courses