estimate_change_cost
Estimate the cost impact of a proposed infrastructure change and check budget fit. Provides monthly and annual delta plus a budget verdict: ok, warn, over_budget, or no_budget.
Instructions
Cost preflight for a proposed change: what it costs and whether it fits budget.
Agent-native. Call this BEFORE applying an infrastructure change to get a machine verdict (ok / warn / over_budget / no_budget) plus the monthly and annual cost delta and the budget headroom. Read-only: it estimates and checks, it never applies anything.
Describe the change one of these ways:
terraform_plan_json / terraform_plan_file / tf_dir : a Terraform plan
helm_diff : output of
helm diff upgradeor a values.yaml diffmonthly_delta_usd : a known monthly cost delta (escape hatch for any change the estimators don't parse, e.g. "launch a db.r6g.4xlarge")
budget_name selects which budget to check against; default is the first active budget. With no budget configured the verdict is "no_budget" and the cost delta is still returned.
Good triggers: "will this fit my budget", "what will this terraform/helm change cost before I apply it", "cost preflight", "can the agent afford this change".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tf_dir | No | ||
| helm_diff | No | ||
| budget_name | No | ||
| monthly_delta_usd | No | ||
| terraform_plan_file | No | ||
| terraform_plan_json | No |