LedgerOps is an agentic VS Code extension that uses the Google Gemini API to analyze your Terraform infrastructure in real-time. It acts as an intelligent FinOps assistant directly in your editor.
Features
Live Cost Tracking: Every time you save a .tf file, LedgerOps estimates the real-world monthly cost of your infrastructure and displays it persistently in the VS Code Status Bar.
Budget Thresholds: Define a monthly budget in your VS Code settings. If a file exceeds your budget, the status bar turns red and inline warnings appear under the expensive resources.
Agentic Auto-Tagging: LedgerOps scans your AWS resources to ensure they have required billing tags. If tags are missing, it provides a one-click "Auto-Tag" button to programmatically inject custom configured tags into your code.
Inline Diagnostics: Uses native VS Code squiggly lines to pinpoint exactly which resources are misconfigured or over budget.
Setup
Install the extension.
Open the Command Palette (Cmd+Shift+P on Mac, Ctrl+Shift+P on Windows/Linux).
Run LedgerOps: Set Gemini API Key and paste your Google AI Studio API key. The key is securely stored in your local secret storage.
Extension Settings
This extension contributes the following settings:
ledgerops.monthlyBudget: The total monthly cost threshold (in USD). Defaults to $500.
ledgerops.defaultTags: A JSON object defining the exact tags that the Auto-Tag agent will inject when resources are missing tags. Defaults to:
{
"Environment": "Dev",
"Project": "LedgerOps"
}
Requirements
An active, free Google Gemini API Key is required.
Release Notes
1.0.0
Initial release of LedgerOps. Include live cost estimation, automated tagging, budget thresholds, and inline diagnostics.