Skip to content
Draw your Terraform setup

Terraform Visualizer

Paste Terraform configuration (.tf) and see how **resources, data sources and modules reference each other**. Follow the lines to check what removing this VPC would affect. Includes checks for **missing references, unused variables, cycles, ingress open to the world, plain-text passwords and public S3 ACLs**. It never runs `terraform plan` and works only in your browser.

The text you enter is not saved (it may contain passwords, and it is never sent to a server). Only display settings and node positions are saved automatically in this browser.

Resource diagram

Drag nodes to rearrange them (arrow keys work too). Hover or click to highlight only the upstream and downstream. Lines go from the referencing block to the referenced one; dotted lines are references to data sources, variables and locals.

Things to check

A mechanical check of the pasted configuration only. Things defined in other files, modules or `.tfvars` may be reported as missing references. It extracts blocks and references; it is not a full HCL parser.

Guide

How to use & features

  • Paste your Terraform configuration (the contents of `.tf` files) into the box. For several files, paste them one after another. A sample is loaded at first.
  • Resources and modules (and data sources) are joined by lines from the **referencing block to the referenced one**. If `aws_subnet.app` uses `aws_vpc.main.id`, there is a line from the subnet to the VPC.
  • Dotted lines are references to data sources, variables (`var.`) and locals. Variables, outputs and locals appear only when you turn on "Show".
  • Click a node to see its start line, what it references and what references it. Blocks with `count` or `for_each` get a "×count" mark. "Things to check" appear under the diagram.
FAQ

FAQ

  • What does the diagram show?

    It shows which resources, data sources and modules reference which, as lines. For example, you can follow the lines from a VPC to check what removing or changing it would affect. It is the same **chain of references (such as `aws_vpc.main.id`)** that Terraform uses to decide the order of dependencies.
  • Does it replace `terraform plan`?

    No. It does not run `plan`; it only extracts blocks and references from the configuration text. It cannot know state, variable values, how many resources `count` or `for_each` really create, or what is inside modules. It is similar to `terraform graph`, but works by pasting in your browser and adds checks.
  • What does it check?

    References whose target is not in the pasted configuration, `variable` blocks nothing references, reference cycles, blocks defined twice with the same name, an `aws_security_group` ingress open to `0.0.0.0/0` (the whole world), literal values in `password`, `secret` and similar attributes, S3 `acl = "public-read"`, and a missing `required_providers`. It is a mechanical check, so intended settings can be reported too.
  • Is my file sent to a server?

    No. Everything runs in your browser and nothing is sent to a server. The text you enter is not saved in this browser either, because it may contain passwords. Only display settings and node positions are saved automatically.
Use cases

Common use cases

  • Check the blast radius before a review

    Before changing something that many resources reference, such as a VPC, security group or IAM role, follow the lines to see what would be affected.
  • Grasp an inherited Terraform setup

    Turn a repository with many files into one diagram of resource references and find the overall structure and risky patterns (ingress open to the world, plain-text passwords) first.
Notes

Notes & limitations

  • It is not a full HCL parser

    It is a light parser that extracts blocks and references. It finds references inside complex expressions (`for` expressions, conditionals, nested functions) but does not evaluate them. References inside heredocs are treated as strings.
  • It only sees the pasted configuration

    Other files, module contents, `.tfvars` and state are not read. References to things in other files are reported as missing, so paste the related files together.
  • Provider-specific checks are partial

    Open ingress and public-access checks look only at AWS (`aws_security_group`, `aws_s3_bucket`), Google Cloud (`google_compute_firewall`, `allUsers` on a bucket) and Azure (`azurerm_network_security_rule`, public containers). Equivalent settings on other resources are not checked.

Articles for this tool

Recent Articles