infracost_breakdown
Analyze Terraform infrastructure configurations to generate detailed cost estimates for cloud resources, helping teams understand and optimize cloud spending.
Instructions
Generate a cost breakdown for Terraform infrastructure. Analyzes Terraform configuration and provides detailed cost estimates for resources. Requires infracost CLI to be installed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to Terraform directory or plan JSON file | |
| format | No | Output format (default: table) | |
| outFile | No | Save output to a file | |
| terraformVarFile | No | Terraform variable file paths | |
| terraformVar | No | Terraform variables as key-value pairs |
Input Schema (JSON Schema)
{
"properties": {
"format": {
"description": "Output format (default: table)",
"enum": [
"json",
"table",
"html"
],
"type": "string"
},
"outFile": {
"description": "Save output to a file",
"type": "string"
},
"path": {
"description": "Path to Terraform directory or plan JSON file",
"type": "string"
},
"terraformVar": {
"description": "Terraform variables as key-value pairs",
"type": "object"
},
"terraformVarFile": {
"description": "Terraform variable file paths",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"path"
],
"type": "object"
}