Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raymondbutcher/pretf
Generate Terraform code with Python
https://github.com/raymondbutcher/pretf
python terraform
Last synced: about 1 month ago
JSON representation
Generate Terraform code with Python
- Host: GitHub
- URL: https://github.com/raymondbutcher/pretf
- Owner: raymondbutcher
- License: mit
- Created: 2019-05-23T18:29:29.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-08-11T18:48:13.000Z (over 2 years ago)
- Last Synced: 2024-08-02T00:26:34.085Z (4 months ago)
- Topics: python, terraform
- Language: Python
- Homepage: https://pretf.readthedocs.io/
- Size: 492 KB
- Stars: 103
- Watchers: 3
- Forks: 14
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-terraform - pretf - drop-in Terraform wrapper that generates Terraform configuration with Python. See [pretf documentation](https://pretf.readthedocs.io/en/latest/) (Tools / Miscellaneous)
- awesome-tf - pretf - drop-in Terraform wrapper that generates Terraform configuration with Python. See [pretf documentation](https://pretf.readthedocs.io/en/latest/) :skull: (Tools / Community providers)
README
# Pretf
[![Documentation Status](https://readthedocs.org/projects/pretf/badge/?version=latest)](http://pretf.readthedocs.io/) [![Build Status](https://dev.azure.com/raymondbutcher/Pretf/_apis/build/status/raymondbutcher.pretf?branchName=master)](https://dev.azure.com/raymondbutcher/Pretf/_build/latest?definitionId=1&branchName=master)
Pretf is a completely transparent, drop-in Terraform wrapper that generates Terraform configuration with Python. It requires no configuration and no changes to standard Terraform projects to start using it.
Terraform includes first-class support for configuration in JSON files. Pretf generates those JSON files using your Python functions.
## Documentation
The documentation for Pretf is located at: [https://pretf.readthedocs.io/](https://pretf.readthedocs.io/)
## Features and goals
* Drop into any standard Terraform project.
* Configuration is optional and often unnecessary.
* Just add Python files next to the Terraform files.
* Standard Terraform command line usage.
* Obvious.
* Projects using Pretf are like standard Terraform projects but with extra Python files.
* Python files in projects are self-explanatory; their purpose is obvious.
* Minimal.
* No concept of specific Terraform resources, instead there is a generic way to output JSON configuration blocks.
* Small API.
* Small project scope.
* Easy to learn.
* Flexible.
* Change the entire workflow if you want.