Interview Prep/Terraform/Partial Applies, Version Mismatches and CI Failures

A CI apply job waits until timeout after printing `Do you want to perform these actions? ... Enter a value:`.

BeginnerTroubleshootingPartial Applies, Version Mismatches and CI Failures
Answer

Likely causes → terraform apply without a saved plan or -auto-approve asks for confirmation; there is no TTY in CI.

Diagnose → The last log line is the prompt.

Fix → Apply the reviewed plan file: terraform apply -input=false tfplan (a saved plan doesn't prompt).

Prevent → Always plan -out then apply tfplan in pipelines; set TF_INPUT=0 globally.

All Terraform questions

More on Partial Applies, Version Mismatches and CI Failures