DevTools Logo

Terraform HCL Visualizer

Terraform HCL Visualizer

Inspect the block structure, attributes and dependencies of Terraform HCL

HCL source

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 this tool

  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

Is this a full HCL parser?

No. It is a pragmatic parser focused on the block structure (resources, data, variables, outputs, modules, providers, locals) and attribute/reference extraction, not every HCL feature.

Are the inferred references complete?

They are heuristic — derived from attribute values that look like references. Use them as a guide for understanding dependencies, not an authoritative graph.

Can it read .tf files from my disk?

No. Paste the file contents into the tool. It does not access your filesystem.

References & standards

.env Secret Safety Linter

Validate .env syntax and spot likely leaked credentials or placeholder secrets.

.htaccess Generator

Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth

2D Fluid Dynamics & Particle Physics Sandbox

A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.

AI Function Calling Schema Generator

Generate function calling JSON schemas from TypeScript interfaces

Algorithm Arena & Data Structure Visualizer

Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.

Ansible Playbook Generator

Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML