Skip to content

Releases: ferdinandobons/terraformgraph

v1.0.4

03 Feb 11:54

Choose a tag to compare

What's New

Network Enhancements

  • CIDR blocks in subnet labels — subnets now show their CIDR block (e.g. 10.0.1.0/24) instead of just the type
  • Route table names — subnet boxes display the associated route table name as RT: name
  • Network flow connections — new green connection type showing IGW ↔ NAT Gateway routing
  • Security group connections — new orange dotted connection type showing SG-to-SG ingress rules between services

Resource Aggregation

  • Aggregation chips — group identical service types (3+ instances) into a single node with count badge
  • Click-to-inspect popover — click aggregate nodes to see individual resources and highlight their connections
  • Connection type filter — toggle visibility of each connection type (Data Flow, Trigger, Encryption, Network Flow, Security Rule, Reference)

Deep Reference Scanning

  • Parsed per-resource references (e.g. Lambda env vars pointing to specific S3 buckets) now supersede generic YAML logical connections
  • More accurate connection highlighting when inspecting individual resources in aggregate popovers

Bug Fixes

  • Fix PNG/JPG export ("operation is insecure" canvas taint error) — now uses base64 data URI
  • Fix aggregate node drag getting stuck in drag mode
  • Fix EC2 aggregate nodes being ejected from VPC on click
  • Fix global services draggable into VPC / IGW and SG draggable into subnets
  • Fix SG showing 0 connections (added vpc_security_group_ids and security_groups extractors)
  • Fix port label coercion for HCL2 string values

Legend & UI

  • Updated legend with all 6 connection types
  • Connection filter panel below diagram
  • Aggregation panel with toggle chips

v1.0.3

31 Jan 15:07

Choose a tag to compare

Bug Fixes

  • Fix drag-and-drop bug where resources would disappear when clicked
  • Add null check for getScreenCTM() in drag handlers
  • Validate coordinates against NaN to prevent elements moving off-screen

Code Quality

  • Remove ~250 lines of dead code (unused AGGREGATION_RULES and LOGICAL_CONNECTIONS)
  • Fix service name inconsistencies in layout.py (security_groups, secrets_manager)
  • Replace print() statements with proper logging
  • Update author info in pyproject.toml

v1.0.2

30 Jan 15:02

Choose a tag to compare

terraformgraph v1.0.2

Changes

  • -o/--output is now optional - defaults to diagram.html
  • Updated documentation and examples

Installation

pip install terraformgraph

Quick Start

# Just point to your Terraform directory - that's it!
terraformgraph -t ./infrastructure

This generates diagram.html in the current directory.

v1.0.1

30 Jan 13:28

Choose a tag to compare

terraformgraph v1.0.1

Package renamed from tfgraph to terraformgraph.

Changes

  • Package renamed from tfgraph to terraformgraph
  • Command is now terraformgraph instead of tfgraph
  • All imports updated to terraformgraph.*
  • Configuration directory changed to ~/.terraformgraph/

Installation

pip install terraformgraph

Quick Start

terraformgraph -t ./infrastructure -o diagram.html

Migration from tfgraph

If you previously installed tfgraph:

pip uninstall tfgraph
pip install terraformgraph

Update your scripts to use terraformgraph command instead of tfgraph.

v1.0.0

30 Jan 13:20

Choose a tag to compare

tfgraph v1.0.0 - Initial Release

Generate interactive architecture diagrams from your Terraform configurations.

Features

  • Automatic parsing of Terraform HCL files
  • Smart resource grouping into logical services (ECS, RDS, S3, etc.)
  • Relationship detection based on resource references
  • Interactive HTML output with drag-and-drop positioning
  • PNG/JPG export directly from the browser
  • 300+ AWS resource types supported
  • Bundled AWS official icons

Installation

pip install tfgraph

Quick Start

tfgraph -t ./infrastructure -o diagram.html

Documentation

See the README for full documentation.