Dev Tools · 1h ago
Filter Terraform Plans with JSON and AI to Catch Dangerous Changes
A developer shows how to use `terraform show -json` and `jq` to extract only delete/replace operations from Terraform plans, then feed that compact JSON to an AI for risk analysis. The method avoids the failure mode of pasting raw plan text, which produces verbose and unfocused AI responses. The prompt asks the AI to classify each resource by data risk, trigger, and recommended action.
Meridian48 take
This is a practical, low-hype workflow improvement that demonstrates AI's real strength in structured text filtering, but it's a niche tip for DevOps engineers rather than a breakthrough.
terraformai-workflow