A transparent Terraform wrapper that generates Terraform configuration using Python, requiring no changes to existing projects.
Pretf is a transparent wrapper for Terraform that allows developers to generate Terraform configuration files (JSON) using Python. It solves the problem of dynamically creating or modifying Terraform configurations by leveraging Python's flexibility, without requiring changes to existing Terraform projects. It integrates seamlessly as a drop-in tool, maintaining standard Terraform workflows.
DevOps engineers, infrastructure developers, and teams using Terraform who need dynamic configuration generation, code reuse, or programmatic control over their infrastructure-as-code setups.
Developers choose Pretf because it offers a minimal, unobtrusive way to enhance Terraform with Python's power, without locking them into a new framework or requiring extensive configuration. Its drop-in nature and small API make it easy to adopt and integrate into existing projects.
Generate Terraform code with Python
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Works with any standard Terraform project by simply adding Python files, requiring no configuration changes, as highlighted in the README's seamless integration.
Maintains standard Terraform command-line usage and project structure, making it easy to adopt without disrupting existing processes.
Offers a small, generic API for outputting JSON blocks, keeping the learning curve low and focused, per the documentation's emphasis on simplicity.
Allows full customization of the generation workflow using Python, enabling dynamic configurations and code reuse beyond HCL limitations.
Requires Python installation and expertise, adding overhead for teams not familiar with Python or in environments where it's not allowed.
Generates JSON files instead of HCL, which can be less human-readable and harder to debug, especially in complex projects.
May not integrate seamlessly with all Terraform tools or services, such as Terraform Cloud, that expect standard HCL files, as noted in potential compatibility issues.