Use a tfvars file during planning.
Section: Plan and Apply
Plan with var file
bash
bash
terraform plan -var-file=prod.tfvarsExplanation
Use a tfvars file during planning.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Plan and Apply
Create execution plan
Show the actions Terraform would take to reach the desired state.
Refresh-only plan
Compare state with remote objects and update state without proposing config changes.