What is tfplan2md?
maintfplan2md is a tool that converts Terraform plan JSON files (generated via terraform show -json) into human-readable Markdown reports. It is designed to improve Pull Request reviews by providing structured, semantic diffs instead of raw JSON or verbose text output.
Key benefits include:
- Logical Grouping: Changes are grouped by module.
- Semantic Diffs: Shows actual resource changes (e.g., adding/removing rules) rather than confusing index-based modifications.
- Readability: Uses collapsible sections, tables, and semantic icons (e.g., 🌐 for IPs, 🛡️ for roles).
- Security: Sensitive values are masked by default.
- Integration: Works with GitHub and Azure DevOps PR comments and supports static analysis findings (SARIF 2.1.0) from tools like Checkov, Trivy, TFLint, and Semgrep.