infracost_breakdown
Estimate cloud costs from Infrastructure as Code files such as Terraform. Get a per-resource cost breakdown to plan and optimize spending.
Instructions
Generate cost breakdown for Infrastructure as Code (Terraform, CloudFormation, etc.). Shows cost estimates for cloud resources.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "infracost_breakdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the Terraform/IaC directory or plan JSON file. | |
| apiKey | No | Infracost API key (can also use INFRACOST_API_KEY env var). | |
| fields | No | Fields to include in output (all, price, monthlyQuantity, unit, hourlyCost, monthlyCost). | |
| format | No | Output format: table, json, html, diff, github-comment, gitlab-comment, azure-repos-comment, slack-message, etc. | table |
| showSkus | No | Show SKU details in the output. | |
| compareTo | No | Path to baseline Infracost JSON for comparison. | |
| extraArgs | No | Additional CLI arguments. | |
| usageFile | No | Path to Infracost usage file for resource usage estimates. | |
| configFile | No | Path to Infracost config file. | |
| syncUsageFile | No | Sync usage file with missing resources. | |
| timeoutSeconds | No | Command timeout in seconds. | |
| workingDirectory | No | Directory where the command is executed. Defaults to current directory. | |
| terraformPlanFlags | No | Flags to pass to 'terraform plan'. | |
| terraformWorkspace | No | Terraform workspace to use. |