infracost_diff
Compare Terraform configurations to identify cost changes between baseline and current infrastructure, helping track cloud spending differences.
Instructions
Show cost differences between two Terraform configurations. Compares baseline and current infrastructure to identify cost changes. Requires infracost CLI to be installed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to current Terraform directory or plan JSON file | |
| compareTo | Yes | Path to baseline Terraform directory or plan JSON file | |
| format | No | Output format (default: diff) | |
| outFile | No | Save output to a file |
Input Schema (JSON Schema)
{
"properties": {
"compareTo": {
"description": "Path to baseline Terraform directory or plan JSON file",
"type": "string"
},
"format": {
"description": "Output format (default: diff)",
"enum": [
"json",
"diff"
],
"type": "string"
},
"outFile": {
"description": "Save output to a file",
"type": "string"
},
"path": {
"description": "Path to current Terraform directory or plan JSON file",
"type": "string"
}
},
"required": [
"path",
"compareTo"
],
"type": "object"
}