tofu plan
tofu plan [-var name=value] [-var-file=FILE] [-out FILE]
Risk: Safe
What it does
Shows what apply would do: + create, ~ change, - destroy, -/+ replace. Changes nothing.
When to use it
Before every apply. Read it like the site inspector's report.
Example
$ tofu planCompare the blueprint with what is built.
$ tofu plan -var tables=6Fill in one variable for this plan.
$ tofu plan -var-file=penang.tfvarsRead variable values from a file.
$ tofu plan -destroyPreview what destroy would delete.
$ tofu plan -out tfplanSave the plan, so apply does exactly this.
Learn it in: Read a plan: + ~ - -/+ · Official docs