Skip to main content

Terraform Parser - Parse Terraform to JSON

Project description

terraform-parser

PyPI Latest Release Build Status Coverage Status Downloads

Parse Terraform scripts into JSON

Status

Dec 2022 - This an experimental parser that can parse HCL2

Problem

Terraform scripting can be complex;

An application (or docker image, or lambda) is a black box to infrastructure: Services defined in infrastructure are communicated to the application as a set of environment variables.

We want to define services independently, in terraform, and then merge many services into a single infrastructure specification. Specifically, we want to

  • avoiding terraform namespace collision
  • merge the vars and other resources
  • merge the application environment variables

Solution

Most of the solution is to use terraform modules. The remaining problem is

The hope is to

  • parse terraform into Json data
  • merge data from different terraform to single spec
  • allow Python to modify data easily
  • write out terraform (in diff-friendly way)

References

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

terraform-parser-0.325.22362.tar.gz (13.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page