risky_changes
Ranks Terraform/OpenTofu plan changes by severity and explains why each is risky, highlighting stateful-resource destruction, IAM wildcards, public exposure, and disabled encryption before apply.
Instructions
Ranked list of risky changes with reasons. Flags: destroy/replace of stateful resources (databases, buckets, disks, KMS keys, DNS zones, secrets; aws/azurerm/google/kubernetes plus generic name heuristics), which attribute forces a replacement, IAM wildcards and admin policies, security groups / firewalls opening 0.0.0.0/0 or ::/0 (admin and database ports rated highest), public access enabled, encryption disabled or key changed, deletion protection off, backup retention reduced. Tags-only updates are listed as low.
min_severity: info | low | medium | high | critical. Only the findings are listed; resources not mentioned had nothing notable. Values of attributes are never printed here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| min_severity | No | low |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |