Interactive cost analysis, FinOps recommendations, policy checks, and a what-if simulator for Terraform/CloudFormation/Pulumi infrastructure, powered by the cloudcosttree CLI.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Interactive cost analysis, FinOps recommendations, policy checks, and a
what-if simulator for your infrastructure — right inside the editor.
This extension is a thin UI layer over the
cloudcosttree CLI: every
number you see comes from a real cloudcosttree analyze --export json:-
call, not a reimplementation. No pricing/parsing logic is duplicated here.
Requirements
None — the extension downloads the matching cloudcosttree CLI binary for
your OS/CPU automatically the first time you run an analysis (shown as a
one-time "downloading the cloudcosttree CLI" notification). If you already
have cloudcosttree on your PATH (e.g. installed via
curl -fsSL https://cloudcosttree.com/install.sh | sh, or built from
source), the extension uses that instead of downloading its own copy. To
pin a specific binary yourself, set the cloudcosttree.binaryPath setting.
Features
Analyze Current File: right-click a .tf/.tfstate/.json/.yaml
infrastructure file (or run the command with one open) to open an
interactive report.
Collapsible tree grouped by module/stack, with cost, policy-violation
coloring, and a savings badge per resource.
Pie + bar charts (cost distribution, cost by resource type).
Click any resource for its full details, its own FinOps recommendations,
its policy violations, and a What-If Simulator form scoped to fields
that actually apply to it (instance type, IOPS, Multi-AZ, ...) — powered
entirely by the CLI's existing --whatif flags.
Export the current view as Markdown, HTML (via the CLI), or PNG (a
snapshot of the whole panel).
Follows the VS Code color theme automatically (styled with --vscode-*
CSS variables — no separate dark/light code path).
Settings
Setting
Description
cloudcosttree.binaryPath
Path to the CLI binary (default: cloudcosttree on PATH)
cloudcosttree.pricesPath
Price catalog JSON (default: the CLI's own default)