Estimate change cost
estimate_change_costEstimate the monthly and annual cost delta of a Terraform or Helm change before applying it, and check it against your budget to get an ok, warn, or over_budget verdict.
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. It estimates and checks, it never applies anything.
Changes nothing. It is not marked read-only only because tf_dir runs
terraform plan there, which executes that directory's provider plugins.
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". Examples: - "What would this change cost per month?" - "Preflight the cost of this terraform plan"
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 |