• Stars
    star
    103
  • Rank 331,120 (Top 7 %)
  • Language
    Python
  • License
    MIT License
  • Created over 5 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Generate Terraform code with Python

Pretf

Documentation Status Build Status

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/

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.