Skip to content

Menu

Terraform Plan Viewer

Paste terraform show -json plan output to see creates, updates, replaces and deletes grouped, with before and after diffs and sensitive values masked.

Runs entirely in your browserDevOpsFree, no sign-up
Loading tool

01What is Terraform Plan Viewer?

Terraform Plan Viewer reads the machine-readable plan that terraform show -json plan.tfplan prints and turns its resource_changes list into groups you can scan. Raw plan JSON is long and nested, and the line that matters, a replace or a delete, is easy to miss in review. Each entry's change.actions decides its group, using the values in HashiCorp's JSON output format doc: create, update, delete, read, no-op, and replace for both ["delete", "create"] and ["create", "delete"]. Replace rows show which order Terraform will use, the action_reason when present (such as replace_because_cannot_update), and the replace_paths that forced the replacement. Moved resources show their previous_address, and deposed or importing objects are labelled. For each resource the tool walks before and after side by side and lists only the attributes that differ, with nested maps and lists shown as dotted paths like tags.env or ingress[1].from_port. Leaves marked true in after_unknown appear as (known after apply). Any value marked sensitive in before_sensitive or after_sensitive, or under a parent marked sensitive, is shown as (sensitive value) instead of its contents. No-op resources are hidden by default, with a checkbox to show them. A copy button gives a plain text summary for a pull request comment. A worked example: aws_db_instance.main has actions ["delete", "create"], engine_version going from 16 to 17, a sensitive password and an unknown id. It lands under Replace with the reason replace_because_cannot_update and replace path engine_version. The diffs read engine_version: "16" -> "17", id: (known after apply), and password: (sensitive value) -> (sensitive value). If you paste the output of terraform show -json without a plan file, the tool notices the values key and tells you it is state, not a plan. Limits: it only reads resource_changes, so output changes, resource_drift, checks and variables are not shown. It does not run Terraform, cannot read the binary plan file directly, and does not validate the plan. List diffs compare by position, so an item inserted at the front shows every later item as changed. Large attributes like policy documents show as one JSON string. Note that the plan JSON itself still holds sensitive values in plain text. The masking only affects what this page displays. Parsing happens in your browser.

DevOps and platform engineers, SREs and reviewers who approve Terraform changes in CI. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Terraform Plan Viewer

  1. Run terraform plan -out=plan.tfplan.
  2. Run terraform show -json plan.tfplan and copy the output.
  3. Paste the JSON into the input box.
  4. Read the groups and expand attention to Replace and Delete first.
  5. Use the copy button to grab a text summary.

03Worked examples

Input: aws_instance.web with actions ["update"], instance_type t3.micro -> t3.small, tags gains team = "web"
Result: Update in place (1) ~ aws_instance.web instance_type: "t3.micro" -> "t3.small" tags.team: null -> "web"
Input: aws_db_instance.main with actions ["delete", "create"], action_reason replace_because_cannot_update, replace_paths [["engine_version"]], password sensitive, after_unknown id true
Result: Replace (1) -/+ aws_db_instance.main engine_version: "16" -> "17" id: null -> (known after apply) password: (sensitive value) -> (sensitive value)
Reason and replace path are shown on the card
Input: aws_launch_template.app with actions ["create", "delete"], name app-v1 -> app-v2, image_id ami-1 -> ami-2, after_unknown id and latest_version
Result: Replace (1) -/+ aws_launch_template.app id: null -> (known after apply) image_id: "ami-1" -> "ami-2" latest_version: null -> (known after apply) name: "app-v1" -> "app-v2"
Create before destroy order
Input: aws_security_group.api update: ingress [{443, [10.0.0.0/8]}] -> [{443, [10.0.0.0/8, 0.0.0.0/0]}, {22, [0.0.0.0/0]}]
Result: Update in place (1) ~ aws_security_group.api ingress[0].cidr_blocks[1]: null -> "0.0.0.0/0" ingress[1].cidr_blocks[0]: null -> "0.0.0.0/0" ingress[1].from_port: null -> 22
Nested list paths
Input: aws_iam_user.old with actions ["delete"], action_reason delete_because_no_resource_config, before name bob
Result: Delete (1) - aws_iam_user.old name: "bob" -> null
Input: {"format_version":"1.0","terraform_version":"1.9.5","values":{"root_module":{}}}
Result: This looks like state output (terraform show -json with no plan file). Pass the saved plan file instead.
Error case

04Common use cases

  • Reviewing a CI plan before approving an apply
  • Spotting resources that will be replaced rather than updated in place
  • Checking why Terraform wants to delete a resource using action_reason
  • Pasting a readable plan summary into a pull request without exposing sensitive values
  • Finding which attribute change forces a replacement
  • Catching a security group rule that opens a port to 0.0.0.0/0
  • Confirming a refactor with moved blocks produces no real changes

05Tips

  • Search for Replace and Delete first; those are the changes that remove existing objects.
  • terraform show -json without a plan file prints state, not a plan, and the tool will tell you so.
  • Treat the plan JSON as a secret file, since sensitive values are stored in it unmasked.
  • Large attributes like policy documents show as one JSON string, so compare them with a JSON diff tool.
  • Tick the no-op checkbox after a refactor to see that moved resources kept their previous_address.

06Related concepts

terraform plan, terraform show -json, resource_changes, Create before destroy, Sensitive values, Infrastructure as code.

Frequently Asked Questions

What is Terraform Plan Viewer?

Terraform Plan Viewer is a free, browser-based developer tool on AIDToolStack. Paste terraform show -json plan output to see creates, updates, replaces and deletes grouped, with before and after diffs and sensitive values masked. It requires no installation or sign-up and works entirely in your browser.

Is Terraform Plan Viewer free to use?

Yes. No sign-up, no fees and no usage cap.

Does Terraform Plan Viewer store my data?

No. It runs in your browser; nothing is uploaded.

Cheat sheet

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe