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 details)

Uploaded Source

File details

Details for the file terraform-parser-0.325.22362.tar.gz.

File metadata

  • Download URL: terraform-parser-0.325.22362.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.6

File hashes

Hashes for terraform-parser-0.325.22362.tar.gz
Algorithm Hash digest
SHA256 3ffaf96821964677c59477c47fd1e19173313e38ddf6ba3dc69c4460010c1aca
MD5 7e5a22f397c5b9e537768ffef1601097
BLAKE2b-256 b817fa92693628cf49ff059c12e7daef9f66c90ade653972902770ba8f022edb

See more details on using hashes here.

Supported by

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