Skip to main content

simple tfvars (HCL) converter

Project description

About

simple tfvars (HCL) converter

Usage

usage: json2tfvars [-h] [--reverse] [--indent N] [FILE [FILE ...]]

positional arguments:
  FILE

optional arguments:
  -h, --help  show this help message and exit
  --reverse   expect tfvars (HCL) input
  --indent N  adjust identation levels
$ json2tfvars <<< '{"a":"b"}' | json2tfvars --reverse | jq -r '. + {"c":"d"}' | json2tfvars

a = "b"

c = "d"

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

json2tfvars-0.0.1.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

json2tfvars-0.0.1-py2-none-any.whl (3.5 kB view hashes)

Uploaded Python 2

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