Skip to main content

Describe your Terraform project using Python with inheritance

Project description

Snakecraft: Generate Terraform code from Python

Have you ever felt writing Terraform code was very verbose? Have you ever disliked passing variables into layers of modules?

Snakecraft allows you to write your Terraform configuration in Python and generate the necessary Terraform code (as a .tf.json file).

Python 3.6 is required at least.

Installing and running Snakecraft

You can install Snakecraft using pip:

pip install -U snakecraft

Afterwards, you can author Snakecraft modules/packages in Python code. If you want to dive into Snakecraft by reading the examples, you can clone them from Github and process them using Snakecraft:

git clone https://github.com/xoraxax/snakecraft.git

cd snakecraft/examples

# The next commands reads snakecraft.ini:
snakecraft

# Now we can run Terraform:
cd simple_example
terraform init
terraform plan

As Snakecraft is still in an early stage, documentation is to be done.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snakecraft-0.2.1.tar.gz (10.2 kB view hashes)

Uploaded source

Built Distribution

snakecraft-0.2.1-py3-none-any.whl (13.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page