Belajar Sendiri

Commands

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 plan

Compare the blueprint with what is built.

$ tofu plan -var tables=6

Fill in one variable for this plan.

$ tofu plan -var-file=penang.tfvars

Read variable values from a file.

$ tofu plan -destroy

Preview what destroy would delete.

$ tofu plan -out tfplan

Save the plan, so apply does exactly this.