Terraform HCL Visualizer

Inspect the block structure, attributes and dependencies of Terraform HCL

HCL source

Block inventory

1
Resources
1
Data
1
Variables
1
Outputs
1
Modules
1
Providers
0
Locals

Inferred references

resource.aws_instance.web
var.instance_count
output.web_id
aws_instance.web.id

Blocks

terraform
required_version= ">= 1.5"
provider
aws
region= "us-east-1"
variable
instance_count
type= number
default= 2
resource
aws_instanceweb
ami= "ami-12345"
instance_type= "t3.micro"
count= var.instance_count
tags= { Name = "web" }
data
aws_amilatest
most_recent= true
output
web_id
value= aws_instance.web.id
module
vpc
source= "terraform-aws-modules/vpc/aws"

Examples

Map a small config

Input
A .tf file with resources, a variable, an output and a module
Output
Block counts (e.g. 2 resources, 1 variable, 1 output, 1 module) plus inferred references.

The tool loads a sample Terraform file — the inventory shows the shape and the references show how blocks connect.

Spot a dependency

Input
output "web_id" { value = aws_instance.web.id }
Output
Reference: output.web_id → aws_instance.web.id

Attribute values that look like references are listed so you can trace how an output depends on a resource.

About this tool

As a Terraform configuration grows, its block structure — resources, data sources, variables, outputs, modules, providers, and locals — becomes hard to hold in your head. This visualizer parses HCL and renders it as a navigable inventory instead of a wall of text.

Paste a .tf file and the tool counts blocks by type, lists each block with its labels and attributes (including nested blocks), and infers ${...} dependency references between them. It is a pragmatic parser focused on structure, not a full HCL implementation, so it is great for understanding and reviewing a configuration quickly.

How to use

  1. Paste the HCL

    Copy the contents of one or more .tf files into the source box.

  2. Read the inventory

    Use the block counts to see the shape of the configuration at a glance.

  3. Inspect blocks

    Expand any block to read its attributes and nested blocks.

  4. Trace dependencies

    Use the inferred references to see how resources, variables and outputs connect.

Common mistakes

Mistake:Trusting inferred references as exhaustive.

Fix:They are a heuristic from attribute values; real dependencies may also come from implicit data flow.

Mistake:Pasting a directory path.

Fix:Paste the file contents — this tool parses HCL text, it does not read your filesystem.

Frequently asked questions

References & standards