terraform-diagrams
Generates cloud architecture diagrams directly from Terraform (.tf) files. Parses HCL, maps resource dependencies, and visualizes infrastructure automatically using Eraser.
Introduction
The terraform-diagrams skill is an specialized automation tool designed for DevOps engineers, cloud architects, and developers managing infrastructure-as-code (IaC). It streamlines the process of infrastructure documentation by transforming static Terraform HCL code into clear, professional architecture diagrams. By interpreting complex resource hierarchies, the skill identifies key components such as VPCs, subnets, modules, and data sources, allowing teams to visualize their deployment topology instantly without manual diagramming effort.
This tool is particularly valuable during code reviews, architectural audits, or when onboarding team members to new projects. By grounding diagrams in the actual Terraform state or source configuration, it ensures that visual representations are always consistent with the infrastructure defined in your .tf or .tfvars files. It supports major cloud providers including AWS, Azure, and Google Cloud Platform, mapping cross-resource connections such as subnet associations, security groups, and IAM roles into intuitive Eraser DSL flows.
-
Automatically parses Terraform resources, modules, variables, and data sources for full-spectrum visualization.
-
Renders cloud architecture diagrams including containers for VPCs, VNETs, and network boundaries.
-
Supports multi-provider environments, grouping resources by cloud vendor for better clarity.
-
Integrates directly with the Eraser API to generate high-resolution, editable diagram links.
-
Provides a minimal, structured output format containing a diagram preview, an editable editor link, and source tracking.
-
Activate this skill whenever you have active Terraform files and need to visualize your infrastructure design.
-
Ensure your Terraform code is syntactically valid to allow the parser to map dependencies like subnet_id or module outputs correctly.
-
Use the generated editor links to share diagrams with stakeholders or to further customize layouts within the Eraser web dashboard.
-
Requires internet access to communicate with the Eraser API for diagram rendering; an API key is optional but recommended for watermark-free, high-resolution output.
-
The tool is highly specialized; avoid using it for non-infrastructure files or natural language descriptions that do not contain HCL definitions.
Repository Stats
- Stars
- 17
- Forks
- 0
- Open Issues
- 1
- Language
- TypeScript
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- May 1, 2026, 07:24 AM