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¶
- Plan Validation: Analyze tfplan.json files
- Security Scanning: Identify security issues
- Compliance Checking: Ensure policy compliance
- Resource Analysis: Detailed resource breakdown
- Report Generation: Markdown and HTML reports
Prerequisites¶
Generate Terraform plan files:
Output¶
The command provides: - Resource change summary - Security findings - Compliance violations - Recommendations for improvements
Examples¶
Basic Plan Check¶
Generate Report¶
Related Commands¶
check deps- Analyze dependenciescheck cost-analysis- Estimate costsscan iac- Security scanning