
Terraform Diagrams
Turns your Terraform files into visual architecture diagrams by parsing resources, modules, and dependencies, then hitting the Eraser API to render them. It understands multi-cloud setups across AWS, Azure, and GCP, groups resources by VPCs or VNets, and maps out the connections between load balancers, instances, databases, and everything else defined in your HCL. The output is tight: just the diagram image, an editor link, and the DSL code. Useful when you inherit infrastructure code and need to see what's actually deployed, or when you want to document your setup without drawing boxes manually. Works best when you have real .tf files to feed it.
- skills.sh installs
- 765
- GitHub stars
- 47
- last updated
- Aug 21, 2026
Install
$ npx -y skills add eraserlabs/eraser-io --skill terraform-diagrams --agent claude-codeInstalls into .claude/skills of the current project.
Files
Terraform Diagram Generator
Generates architecture diagrams directly from Terraform .tf files. Specializes in parsing Terraform code and visualizing infrastructure resources, modules, and their relationships.
When to Use
Activate this skill when:
- User has Terraform files (
.tf,.tfvars) and wants to visualize the infrastructure - User asks to "diagram my Terraform" or "visualize this infrastructure"
- User mentions Terraform, HCL, or infrastructure-as-code
- User wants to see the architecture of their Terraform-managed resources
How It Works
This skill generates Terraform-specific diagrams by parsing Terraform code and calling the Eraser API directly:
- Parse Terraform Files: Identify resources, modules, data sources, and variables
- Extract Relationships: Map dependencies, resource connections, and module hierarchies
- Generate Eraser DSL: Create Eraser DSL code from Terraform resources
- Call Eraser API: Use
/api/render/elementswithdiagramType: "cloud-architecture-diagram"
Instructions
When the user provides Terraform code:
- Parse the Terraform
Sponsors
Details
- Repository
- github.com/eraserlabs/eraser-io
- Categories
- DevOps & CI/CD, Code Review & Quality, Cloud & Infrastructure
- First seen
- Jun 3, 2026