Pcornel
Automation · Infrastructure as Code

Plan

Cheat sheet · https://pcornel.dk/topic.php?topic=5426

Back to the Topic

Answer

A plan is an execution proposal calculated from configuration, effective inputs, state and provider observations at a particular point in time.

Remember

  • Plan approval ≠ future apply result; credentials, state, remote objects or provider behavior may change after planning.
  • State or engine metadata ≠ authoritative live-service health; always confirm with provider read-back and target acceptance checks.
  • A green execution step ≠ complete convergence when later state persistence, external dependencies or workload readiness remain unverified.
  • Provider/API success ≠ business outcome; keep engine evidence and target-domain evidence separate.

First checks

  • terraform plan -out=tfplan — save plan
  • terraform show tfplan — review
  • terraform show -json tfplan | jq '.resource_changes[] | select(.change.actions!=["no-op"]) | .address' — changes list

Verify in this order

code + state + real → plan

Where it usually breaks

Plan approval ≠ future apply result; credentials, state, remote objects or provider behavior may change after planning. The proof boundary ends where provider/state evidence stops and target-domain acceptance begins.

Configuration/input → graph/state refresh → plan → provider API request → provider terminal result → resource read-back → effective service state → workload.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5426

Confirmation

Confirm action

Continue?