The check tfplan command validates and analyzes Terraform plan files for compliance, security, and best practices.
# 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
Generate Terraform plan files:
terraform plan -out=tfplan
terraform show -json tfplan > tfplan.json
The command provides:
thothctl check iac -type tfplan
thothctl check iac -type tfplan --outmd security-report.md
check deps - Analyze dependenciescheck cost-analysis - Estimate costsscan iac - Security scanning