Plan before applying

Terraform’s workflow commonly includes initialization, planning, review, and applying. A plan previews the actions Terraform proposes. Read the plan carefully, especially when it c

Terraform’s workflow commonly includes initialization, planning, review, and applying. A plan previews the actions Terraform proposes. Read the plan carefully, especially when it changes or replaces existing resources.

Preview proposed infrastructure changes

A plan is based on the configuration, state, provider behavior, and available credentials.

terraform plan

Static example · not executed

Apply a reviewed plan

Applying can create, modify, or destroy real resources. Use it only in the intended workspace and after reviewing the proposed changes.

terraform apply

Static example · not executed

Knowledge check

Why review a plan before applying?

Pick an answer to check.