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

I am uncertain if configuration/template language, such as Terraform, should include scripting. It is beneficial to have a simple configuration, albeit redundant, for VCS tracking and simple diff for merge reviews.

I would advocate a high level langauge (HLL), like Python, be used to produce the Terraform configuration with both HLL and Terraform be included in the repository. HLL is familiar, and the Terraform changes are easy to review.

Using an HLL for Terraform generation removes the need for the quirky template expressions, complex expressions, and modules.

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

terraform_parser-0.358.23070-py2.py3-none-any.whl (14.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file terraform_parser-0.358.23070-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for terraform_parser-0.358.23070-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 16dd669fe80fae82acba1bf77b49d0dfadbfcb79481dec872284c79b425de441
MD5 0de620800100e3b1e8fc706324d552e6
BLAKE2b-256 c8ab1ecb25a4cb410a88666e031b2f21ad4d1d9e29b8d2e9b966903d4650a016

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