A utility that converts Terraform plan files to JSON format for easier parsing and integration.
tfjson is a command-line utility that converts Terraform plan files into JSON format. It solves the problem of programmatically accessing Terraform execution plans by providing a structured, machine-readable output that can be easily parsed by other tools and scripts. This enables automation around infrastructure changes, validation, and integration with CI/CD pipelines.
DevOps engineers, infrastructure developers, and platform teams working with Terraform who need to analyze, validate, or integrate Terraform plans with external systems and automation workflows.
Developers choose tfjson because it provides a reliable, standalone way to access Terraform plan data without depending on Terraform's internal APIs. It offers a simple interface for converting binary plan files to JSON, making infrastructure plans accessible for custom tooling and automation.
Terraform plan file to JSON
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Extracts full structure from binary Terraform plan files, enabling access to complex plan data without relying on Terraform's internal APIs.
Converts Terraform plans into standardized JSON format, making them machine-readable for automation and tooling, as shown in the README example with nested modules.
Handles and preserves hierarchical relationships in nested Terraform modules, demonstrated in the README with inner modules and their resource details.
Based on Terraform's internal functionality from PR #3170, providing a independent tool that avoids dependency on Terraform's evolving codebase.
Derived from an older Terraform PR, so it may not support newer Terraform features or plan formats, risking breakage with updates.
The README only covers basic installation and a simple example; it lacks advanced usage guides, troubleshooting tips, or integration examples.
Merely outputs JSON without any validation or analysis features, forcing users to build custom tools for practical use, increasing development effort.