eraserlabs avatar

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-code

Installs 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:

  1. Parse Terraform Files: Identify resources, modules, data sources, and variables
  2. Extract Relationships: Map dependencies, resource connections, and module hierarchies
  3. Generate Eraser DSL: Create Eraser DSL code from Terraform resources
  4. Call Eraser API: Use /api/render/elements with diagramType: "cloud-architecture-diagram"

Instructions

When the user provides Terraform code:

  1. 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

More from eraserlabs/eraser-io

All 5
1aradotso avatarmarketing-content-pipeline-automationaradotso/marketing-skillsmarketing content pipeline automation736skills.sh installs
2mindrally avatarterraformmindrally/skillsExpert in Terraform infrastructure-as-code with cloud deployment patterns731skills.sh installs
3aradotso avatarmarketing-pipeline-share-ai-content-automationaradotso/marketing-skillsmarketing pipeline share ai content automation726skills.sh installs
4aradotso avatarmarketing-pipeline-share-ai-contentaradotso/marketing-skillsmarketing pipeline share ai content722skills.sh installs
5aradotso avatarmarketing-pipeline-share-automationaradotso/marketing-skillsmarketing pipeline share automation713skills.sh installs
6aradotso avatarultimate-ai-content-pipelinearadotso/marketing-skillsultimate ai content pipeline713skills.sh installs