DevTools Logo

Terraform Plan Explorer

Terraform Plan Explorer

Turn a terraform plan into grouped create/update/destroy diffs and PR-ready Markdown.

Runs in your browser
Try an example

Plan output

Grouped changes

Paste a terraform plan to explore it

Text plans and terraform show -json output are supported.

Terraform Plan Explorer parses the linear output of `terraform plan` (or a `terraform show -json` document) into a navigable model: each resource becomes a row with its module path, action and attribute-level old/new values. Counts are reconciled against the Plan: summary line, drift hints and forced-replacement reasons are surfaced, and the whole result can be exported as Markdown for a pull request. Parsing is local and nothing is uploaded.

Text plan
# aws_instance.web will be created
  + resource "aws_instance" "web" {
      + ami = "ami-12345"
    }

Plan: 1 to add, 0 to change, 0 to destroy.

The resource appears under create with its ami attribute and the declared count is reconciled.

In-place update
# aws_db_instance.main will be updated in-place
  ~ instance_class = "db.t3.micro" -> "db.t3.small"

The diff table shows the old and new values side by side under the update group.

Forced replacement
~ ami = "ami-old" -> "ami-new" # forces replacement

The attribute is marked and the replacement reason is added to the resource detail.

Examples

Create

Input
# aws_instance.web will be created
Output
create group with aws_instance.web

The header phrase sets the action and the resource header is kept verbatim for search.

Update

Input
~ instance_class = "db.t3.micro" -> "db.t3.small"
Output
Old and new columns in the diff table

Arrow-separated values are split into old and new readings.

Replacement

Input
~ ami = "a" -> "b" # forces replacement
Output
Replacement reason on the resource

Forced replacements are highlighted in the attribute table and the Markdown export.

About this tool

Terraform Plan Explorer reorganizes linear `terraform plan` output into a grouped, searchable diff. Each resource carries its address, module path, action and per-attribute old/new values, including map keys added or removed inside nested blocks.

The summary bar counts creates, updates, destroys, replacements and reads, then reconciles them against the `Plan:` line printed by Terraform. Drift hints and `# forces replacement` annotations are surfaced so a reviewer can see why a resource is being recreated.

Both human-readable plan output and `terraform show -json` documents are accepted. The Markdown export produces a summary table and per-resource bullets suitable for a pull request. Parsing happens entirely in your browser; plan text is never uploaded.

What this tool does not do

  • Only standard plan header phrases and attribute lines are recognized; vendor-specific prefixes may be skipped.
  • JSON support covers the resource_changes array; configuration and prior-state sections are not rendered.
  • Multi-line block diffs are flattened into their key/value lines rather than reconstructed as nested objects.
  • No Terraform binary, provider schema or cost data is consulted; nothing is validated against real infrastructure.
  • Input stays in the tab and is not persisted; copy or download the Markdown before closing the page.

How to use this tool

  1. Paste a plan

    Copy the output of terraform plan (or terraform show -json) into the input panel, or load a sample chip.

  2. Review the summary

    Check the action counts and the reconciliation warning if they disagree with the Plan: line.

  3. Filter resources

    Search by address substring or restrict the list to a single action.

  4. Inspect a diff

    Click a resource to see its attribute table with old and new values and replacement reasons.

  5. Export

    Switch to Markdown to review the PR-ready summary, then copy or download terraform-plan.md.

Use cases

PR reviews

Attach a compact Markdown summary of infrastructure changes to a pull request.

Change approval

Filter to destroy or replace actions to focus on risky operations.

Drift triage

Spot resources that changed outside Terraform from the plan's has-changed lines.

JSON pipelines

Paste terraform show -json from CI and inspect actions without a local Terraform install.

Plan input and parsed model

ElementMeaning
# address will be …Resource header with action phrase: create, update in-place, destroy, replace or read
+ / ~ / - / -/+ linesAttribute marker for added, changed, removed or replacement values
old -> newIn-place value transition within an attribute line
# forces replacementReason captured on the attribute and the resource
Plan: n to add, …Declared totals reconciled against parsed resource counts
resource_changes[]JSON plan input interpreted into the same resource model

Module indices such as module.web[0] are preserved in the address and module path.

Common mistakes

Mistake:Treating the Plan: totals as authoritative.

Fix:The explorer derives counts from parsed resources and warns when the declared totals disagree.

Mistake:Reading -/+ as two resources.

Fix:It is one replacement action, counted as replace rather than create plus destroy.

Mistake:Assuming sensitive values are hidden by the tool.

Fix:The explorer only shows what the plan contains; redact plans before pasting if they might include secrets.

Mistake:Pasting terraform apply output instead of a plan.

Fix:Apply logs do not contain the resource headers this scanner needs; use the plan output or JSON form.

Mistake:Expecting cost estimates.

Fix:Cost estimation is out of scope; use a dedicated cost tool for pricing data.

Frequently asked questions

What do the +, -, ~ and -/+ symbols mean?

+ adds a value or resource, - removes one, ~ changes an existing value in place, and -/+ marks a replacement (a destroy and create of the same resource). The explorer groups -/+ under replace rather than counting it twice.

Why does a resource force replacement?

Some attributes cannot be updated in place — changing ami, instance_class or a name often requires a new object. When the plan annotates a line with # forces replacement, the explorer records that reason on the attribute and in the resource detail and Markdown export.

Can it read terraform show -json plans?

Yes. Paste a JSON document containing resource_changes and the explorer maps its change actions, before/after values and replace_paths into the same grouped model as a text plan.

Are sensitive values shown?

Only what your plan contains. If Terraform printed a value in clear text, the explorer will show it; if it printed (sensitive value), that is what appears. Redact plans before pasting if they may contain secrets — nothing is uploaded, but the text stays in your browser session.

Does it need Terraform installed?

No. This is a parser for plan output that runs in your browser. Generate the plan locally or in CI, then paste the text or JSON here.

Why do the counts disagree with the Plan: line?

The explorer counts parsed resource headers; Terraform's totals can include refresh-only or no-op noise. A warning is shown when the two disagree so you can inspect the raw plan before approving it.

References & standards