terraform-plan

Compute read-only Terraform execution plans showing resource changes.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/theslashdojo/dojo --skill terraform-plan-theslashdojo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-plan
Source: https://github.com/theslashdojo/dojo/tree/main/nodes/terraform/plan
Command: npx skills add https://github.com/theslashdojo/dojo --skill terraform-plan-theslashdojo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires terraform, and includes scripts (resource) components.

What problem does it solve?

This Skill lets you safely preview what Terraform will change in your infrastructure without making any modifications, reducing risk and enabling review before apply.

Core Features & Use Cases

  • Read-only execution plans that show resources to be created, changed, or destroyed.
  • Saveable plan files for audited production workflows and exact apply replay.
  • Modes for CI and drift detection: normal, destroy, and refresh-only, plus targeted planning and detailed exit codes for automation.
  • Use Case: In CI pipelines, run a plan with -detailed-exitcode to gate deployment when infrastructure changes are detected.

Quick Start

Run a Terraform plan in the repository root, review the output, and save the plan file for later apply.

Frequently Asked Questions about terraform-plan

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

FAQPage Schema
How do I preview Terraform infrastructure changes before applying them?

A Terraform plan generates a read-only execution plan showing exactly what will be created, modified, or destroyed. This lets you review infrastructure changes safely without modifying any resources.

Can I use Terraform plan to detect infrastructure drift in a CI/CD pipeline?

Yes, running a Terraform plan with detailed exit codes in a CI/CD pipeline detects infrastructure drift. The detailed exit code signals when changes are found, allowing you to gate deployments automatically.

How do I save a Terraform plan file for later apply?

You can produce a saved binary plan file during the Terraform plan step. This file enables audited production workflows and allows an exact replay when you apply the changes later.

Does Terraform plan support targeting specific resources for recovery?

Yes, Terraform plan accepts target addresses to scope plans to specific resources. This allows you to preview changes for targeted resource recovery without planning changes to the entire infrastructure.

What Terraform plan modes are available for CI and drift detection?

Terraform plan supports normal, destroy, and refresh-only modes. These modes, combined with detailed exit codes and variable files, enable comprehensive CI automation and continuous drift detection.

Do I need Terraform installed to generate an execution plan?

Yes, Terraform is a required dependency. You must have it installed and configured in your environment to compute a read-only execution plan and generate saved binary plan files.