What does `terraform plan` do?
BeginnerConceptWorkflow and CLI
Answer
It computes and displays what Terraform would change to make real infrastructure match the configuration, without changing anything. Output uses + create, - destroy, ~ update in place and -/+ replace. We always read the summary line (Plan: 3 to add, 1 to change, 0 to destroy) before applying.
More on Workflow and CLI
What does `terraform init` do?BeginnerWhat does `terraform apply` do and what is `-auto-approve`?BeginnerWhat does `terraform destroy` do?BeginnerWhat do `terraform fmt` and `terraform validate` check?BeginnerWhy save a plan with `-out` and apply that file?IntermediateWhat does `-detailed-exitcode` do?Intermediate