Terraform ViewerTerraform Viewer is a VS Code extension for inspecting Terraform architecture as an interactive graph. The first version focuses on Azure resources declared with the Features
UsageOpen the Command Palette and run Terraform Viewer: Show Architecture Graph. The extension opens the architecture graph in a new editor tab. Use Terraform Viewer: Refresh Graph to rebuild it manually. The Terraform Viewer activity-bar view shows the current resource count and diagnostics after the graph has been loaded. Architecture documentationUse Generate Documentation Prompt in the graph toolbar to create The base prompt can be customized in Settings → Extensions → Terraform Viewer → Documentation Prompt, or with:
Current scopeThe current MVP recognizes
Modules, data sources, variables, outputs, dynamic expression evaluation, and other cloud providers are not yet rendered as graph nodes. The internal graph model is provider-neutral so these can be added incrementally. Development
Use Run Terraform Viewer Extension from the Run and Debug view to launch an Extension Development Host. Integration tests use the existing VS Code test harness:
Build a VSIX with LimitationsTerraform parsing is intentionally incremental in this first version. Complex expressions and malformed blocks may produce diagnostics or remain unresolved. The graph is derived from the current Terraform files; the extension does not generate or persist a copy of the graph in the repository. LicenseMIT |