Terraform plan summary
tf_plan_summaryRuns Terraform plan and returns a structured summary of add, change, destroy, and replace counts plus affected resources to review infrastructure changes without parsing raw CLI output.
Instructions
Run terraform plan and return a structured summary of changes (add/change/destroy counts and affected resources). Each action is create, update, delete, replace or read; a replace counts in add and destroy, as terraform's Plan line does.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Terraform project directory | |
| binary | No | terraform or tofu (default $TF_BINARY, else terraform) | |
| target | No | Target specific resource | |
| varFile | No | Var file to use | |
| planFile | No | Path to a saved plan file (from `terraform plan -out`); summarized via `show -json` instead of re-running plan. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | Yes | ||
| change | Yes | ||
| changes | Yes | ||
| destroy | Yes | ||
| retained | No | ||
| noChanges | Yes |