terraform-plan-analyzer

Analyze Terraform plan JSON to identify destructive changes, security risks, and cost impact.

3|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/infraspecdev/tesseract --skill terraform-plan-analyzer-infraspecdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-plan-analyzer
Source: https://github.com/infraspecdev/tesseract/tree/main/shield/skills/terraform/plan-analysis
Command: npx skills add https://github.com/infraspecdev/tesseract --skill terraform-plan-analyzer-infraspecdev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you review Terraform plan output before apply so you can catch destructive changes, security regressions, cost increases, and drift before infrastructure is modified.

Core Features & Use Cases

  • Change Impact Review: Summarizes creates, updates, replaces, and destroys from plan JSON or converted plan files.
  • Risk Detection: Flags stateful deletions, IAM changes, network exposure, encryption changes, and other security-sensitive modifications.
  • Operational Decision Support: Produces a written report that helps teams decide whether a plan is safe to apply, needs review, or should not be applied.
  • Use Case: A platform engineer can inspect a pull request’s Terraform plan output and quickly see whether it will delete resources, widen access, or raise monthly cloud spend.

Quick Start

Ask the skill to analyze your Terraform plan JSON and generate a concise risk report with destructive actions, security concerns, cost impact, drift, and a clear verdict.

Frequently Asked Questions about terraform-plan-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check a Terraform plan for destructive changes before apply?

Reviewing Terraform plan output identifies destructive changes and security regressions before apply. It parses plan JSON to flag stateful deletions, IAM changes, and network exposure, producing a written report to help teams decide if the plan is safe to apply.

What security risks should I look for in Terraform plan output?

Security risks in Terraform plan output include IAM changes, network exposure modifications, and encryption changes. Analyzing the plan JSON detects these security-sensitive updates and classifies them to warn you of potential access widening or encryption downgrades before deployment.

How do I estimate cloud cost impact from a Terraform plan?

You can estimate cost impact by parsing Terraform plan JSON to identify cost-impacting resources. The analysis highlights creates, updates, and destroys that raise monthly cloud spend, summarizing the financial impact in a generated risk report.

Can I detect infrastructure drift using Terraform plan JSON?

Yes, you can detect infrastructure drift using Terraform plan JSON. The analysis identifies drift by parsing resource changes and comparing the planned state against expected configurations, flagging unexpected modifications before you apply changes to your infrastructure.

Does Terraform plan analysis work for pull request validation?

Terraform plan analysis works for pull request validation by inspecting the plan output to see whether changes will delete resources, widen access, or raise spend. It generates a risk report that helps reviewers determine if a pull request is safe to merge.