Releases: ferdinandobons/terraformgraph
Releases · ferdinandobons/terraformgraph
v1.0.4
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_idsandsecurity_groupsextractors) - 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
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
terraformgraph v1.0.2
Changes
-o/--outputis now optional - defaults todiagram.html- Updated documentation and examples
Installation
pip install terraformgraphQuick Start
# Just point to your Terraform directory - that's it!
terraformgraph -t ./infrastructureThis generates diagram.html in the current directory.
v1.0.1
terraformgraph v1.0.1
Package renamed from tfgraph to terraformgraph.
Changes
- Package renamed from
tfgraphtoterraformgraph - Command is now
terraformgraphinstead oftfgraph - All imports updated to
terraformgraph.* - Configuration directory changed to
~/.terraformgraph/
Installation
pip install terraformgraphQuick Start
terraformgraph -t ./infrastructure -o diagram.htmlMigration from tfgraph
If you previously installed tfgraph:
pip uninstall tfgraph
pip install terraformgraphUpdate your scripts to use terraformgraph command instead of tfgraph.
v1.0.0
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 tfgraphQuick Start
tfgraph -t ./infrastructure -o diagram.htmlDocumentation
See the README for full documentation.