Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>InfragramNew to Visual Studio Code? Get it now.
Infragram

Infragram

Infragram

|
12 installs
| (0) | Free
Cloud architecture diagrams for Terraform configuration.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Infragram

C4 inspired interactive architecture diagrams for terraform configuration.

Note: This is an early preview and works for single-state view. Support for multi-state view is in the works. Works best with terraform >= v0.14

Features

  • Architecture diagram for terraform configuration
  • Zoom in/out of elements to see different levels of abstraction in your architecture
  • Incremental parsing to generate diagram for work-in-progress code
  • Resolves references and variables to establish relationships in the diagram
  • Navigate between diagram and source code in the editor
  • Visual diff for terraform plan
  • Supports submodules
  • Icon catalog for AWS, Google Cloud and Azure

Usage

  • Command -> Infragram: View Terraform Diagram

    Render architecture diagram for terraform configuration in the current repository

  • Command -> Infragram: View Terraform Plan

    Generate terraform plan and renders diff visualization for the plan

  • Editor Context menu -> Infragram: View in Diagram

    Pan and focus to current resource in the diagram

  • Diagram Context menu -> Expand/Collpase

    Expand or collapse hierarchical nodes to show/hide child nodes

  • Diagram Context menu -> Goto Source

    Navigate to source code definition for the selected node

Examples

AWS Clicklogs Ingestion AWS Clicklogs Ingestion

AWS VPC AWS VPC

Google Kubernetes Engine Google Kubernetes Engine

Azure Cross Region Load Balancer Azure Cross Region Load Balancer

Terraform Plan Diff Terraform Plan Diff

Troubleshooting

  • Requires terraform v0.14 or above. May work in limited capacity for older versions.
  • If you have module dependencies, ensure the dependencies are fetched using terraform init so that the module details are also rendered in the diagram.
  • Please report any issues at this issue tracker.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft