Key Facts
- Category
- Developer & Web
- Input Types
- textarea, file, select, checkbox
- Output Type
- html
- Sample Coverage
- 4
- API Ready
- Yes
Overview
The Terraform Plan Visualizer is a developer utility that parses raw Terraform plan outputs—either in JSON or plain text—and transforms them into an easy-to-read HTML summary. By classifying resource changes into distinct actions like create, update, delete, and replace, and rendering a lightweight dependency graph, this tool helps DevOps engineers quickly assess infrastructure impact before executing an apply.
When to Use
- •Reviewing complex infrastructure changes before running terraform apply to prevent unintended resource deletions or replacements.
- •Auditing pull requests where infrastructure-as-code (IaC) modifications require a clear, visual summary of provider and resource impacts.
- •Troubleshooting dependency issues by visualizing the execution order and relationships between newly created or modified resources.
How It Works
- •Paste your raw Terraform plan text or the JSON payload generated by 'terraform show -json' into the input field, or upload a saved plan file.
- •Select the input format (Auto, JSON, or Text) and toggle the dependency graph option based on your review needs.
- •The tool parses the payload, categorizes every resource change (create, update, delete, replace, read, no-op), and maps out provider dependencies.
- •Review the generated HTML summary and dependency graph to safely verify your infrastructure modifications.
Use Cases
Examples
1. Reviewing a VPC and Security Group Deployment
DevOps Engineer- Background
- A DevOps engineer is adding a new AWS VPC, subnets, and security groups, while updating an IAM policy.
- Problem
- Reading the raw JSON output of the plan is difficult and makes it hard to verify if the security group depends on the correct VPC.
- How to Use
- Paste the 'terraform show -json' output into the Terraform Plan Input field and ensure Show Dependency Graph is checked.
- Example Config
-
Input Format: JSON, Show Dependency Graph: True - Outcome
- The tool generates an HTML summary showing the VPC and subnet as 'create', the IAM policy as 'update', and displays a graph confirming the security group depends on both the VPC and subnet.
2. Auditing a Plain Text Plan File
Cloud Architect- Background
- A cloud architect receives a standard text output of a Terraform plan from a junior developer for review.
- Problem
- The plan is hundreds of lines long, making it tedious to manually count how many resources are being deleted or replaced.
- How to Use
- Upload the .txt plan file using the Plan File input and set the Input Format to Text.
- Example Config
-
Input Format: Text, Show Dependency Graph: False - Outcome
- The visualizer instantly categorizes the text output, providing a clean summary of all create, update, delete, and replace actions grouped by provider.
Try with Samples
json, text, fileRelated Hubs
FAQ
How do I generate a Terraform plan JSON?
Run 'terraform plan -out=tfplan' followed by 'terraform show -json tfplan' to generate the structured JSON payload recommended for this tool.
Does this tool support plain text plan outputs?
Yes, you can paste standard plain text plan outputs. However, JSON format is recommended as it provides richer metadata and cleaner dependency edges.
What resource actions are classified by the visualizer?
The tool categorizes resource changes into create, update, delete, replace, read, and no-op actions.
What is the Show Dependency Graph feature?
It renders a lightweight visual graph of the first parsed dependency edges, helping you understand the order and relationship of resource changes.
Can I upload a file instead of pasting the plan?
Yes, you can use the Plan File option to upload a saved .json or .txt file up to 15MB in size.