Interview Prep/Terraform/Workflow and CLI

What does `terraform apply` do and what is `-auto-approve`?

BeginnerConceptWorkflow and CLI
Answer

apply runs a plan and, after you type yes, executes it, then updates state. -auto-approve skips the prompt. Use it only in pipelines that applied a reviewed saved plan, never in a shell against production out of habit.

All Terraform questions Roadmap: Terraform

More on Workflow and CLI