Terraform
Terraform Plan
Appears inTerraform Associate
A command that generates and displays an execution plan without applying any changes. It compares the desired configuration with the current state and shows which resources will be created, modified, or destroyed.
On the exam
In Terraform Associate: terraform plan is the "dry run" step. Always run plan before apply to review changes. Symbols: + create, - destroy, ~ modify. Question: how do you see what Terraform is going to change without applying it? terraform plan.
Related terms
- Terraform ApplyA command that applies the changes from the execution plan, creating, modifying, or destroying resources in the provider. It asks for interactive confirmation unless -auto-approve is used.
- Terraform StateA file (terraform.tfstate) that Terraform uses to map the real-world configuration in code to actual resources in the cloud. It's Terraform's source of truth about which resources it manages and their current status.