thothctl

Check Terraform Plan Command

Overview

The check tfplan command validates and analyzes Terraform plan files for compliance, security, and best practices.

Usage

# Basic plan validation
thothctl check iac -type tfplan

# Recursive plan checking
thothctl check iac --recursive -type tfplan

# Generate markdown report
thothctl check iac -type tfplan --outmd plan-report.md

Features

Prerequisites

Generate Terraform plan files:

terraform plan -out=tfplan
terraform show -json tfplan > tfplan.json

Output

The command provides:

Examples

Basic Plan Check

thothctl check iac -type tfplan

Generate Report

thothctl check iac -type tfplan --outmd security-report.md