Interview Prep/Terraform/Workflow and CLI

What is the difference between `terraform validate` and `terraform plan`?

BeginnerConceptWorkflow and CLI
Answer

validate is static and offline: syntax, argument names, type consistency. plan talks to the provider and cloud, reads state and finds problems validate cannot, such as a nonexistent AMI, expired credentials or an invalid CIDR. Run validate on every commit for fast feedback and plan on pull requests.

All Terraform questions Roadmap: Terraform

More on Workflow and CLI