Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.