thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Foundational

Terraform Plan

The Terraform command that compares configuration with state and real infrastructure to show proposed create, update, and destroy actions.

Definition

plan refreshes state, computes a diff, and can save it with -out so apply executes exactly what was reviewed. Symbols: + create, - destroy, ~ update in place, -/+ replace. -refresh-only detects drift without proposing config changes.

Example

terraform plan -out=tfplan shows 2 to add, 1 to change, 0 to destroy.

Exam tip

-/+ means destroy and recreate; watch for it on stateful resources.

Related terms