How mayurmhjn/iaclineage works
IaCLineage is a local Terraform source explorer. Users scan a checkout, search declarations with find, or generate reports; the core workflow indexes .tf source, resolves static references across local and installed modules, and exposes declarations, lineage, locations, and diagnostics. The interactive HTML adds field-level upstream/downstream tracing, conditional evidence, filtering, and module connections. Source excerpts establish the CLI-to-index/report flow and parser/model relationships; README documents the browser and static-analysis capabilities, while some implementation details remain unsampled.
Main entry points: cli.py CLI commands · hcl_source.py Terraform indexer · report.py Report generation · model.py Index data model
Components 17
CLI workflow
- CLI commands
src/iaclineage/cli.py
Source analysis
- Source discovery
src/iaclineage/scan.py - Terraform indexer
src/iaclineage/hcl_source.py - HCL parser
src/iaclineage/hcl_source.py - Installed modules
src/iaclineage/installed_modules.py - Index data model
src/iaclineage/model.py - Diagnostics
src/iaclineage/diagnostics.py
Results and reports
- Declaration search
src/iaclineage/cli.py - Report generation
src/iaclineage/report.py - Static HTML and JSON
src/iaclineage/report.py - Interactive HTML
src/iaclineage/report.py
Interactive explorer
- Lineage workspace
src/iaclineage/ui/report.js - Report interface assets
src/iaclineage/ui/report.html
Other components
- Engineer
- Terraform checkout
- Terraform module cache
- Report viewer
Connections 19
- Engineer → CLI commands: runs commands
README.md - CLI commands → Source discovery: scans files
src/iaclineage/cli.py - Source discovery → Terraform checkout: finds .tf files
src/iaclineage/scan.py - CLI commands → Terraform indexer: indexes source
src/iaclineage/cli.py - Terraform indexer → HCL parser: parses declarations
src/iaclineage/hcl_source.py - Terraform indexer → Installed modules: resolves installed modules
src/iaclineage/hcl_source.py - Installed modules → Terraform module cache: reads manifest
src/iaclineage/installed_modules.py - Terraform indexer → Index data model: builds index records
src/iaclineage/hcl_source.py - HCL parser → Diagnostics: reports parse issues
src/iaclineage/hcl_source.py - CLI commands → Declaration search: searches declarations
src/iaclineage/cli.py - Declaration search → Index data model: queries index
src/iaclineage/cli.py - CLI commands → Report generation: writes reports
src/iaclineage/cli.py - Report generation → Index data model: serializes index
src/iaclineage/report.py - Report generation → Static HTML and JSON: renders static output
README.md - Report generation → Interactive HTML: embeds lineage data
src/iaclineage/report.py - Interactive HTML → Lineage workspace: loads explorer
README.md - Interactive HTML → Report interface assets: embeds interface assets
- Report viewer → Interactive HTML: opens locally
README.md - Lineage workspace → Index data model: traces field references
README.md