Interview Prep/Terraform/Workflow and CLI

Which flags make `apply` safer in automation?

IntermediateConceptWorkflow and CLI
Answer

-input=false (never prompt), -lock-timeout=5m (wait for the lock rather than failing), -parallelism=N (tune concurrency against API rate limits), and applying a saved plan file instead of -auto-approve on a fresh plan. Combine with TF_IN_AUTOMATION=1.

All Terraform questions Roadmap: Terraform

More on Workflow and CLI