jk icon indicating copy to clipboard operation
jk copied to clipboard

Support reading and writing HCL files

Open dlespiau opened this issue 6 years ago • 2 comments

The HashiCorp Configuration Language (HCL) has a JSON transform, we should be able to use it to output (and also also read from!) .tf or .hcl files.

dlespiau avatar Jan 23 '19 17:01 dlespiau

Terraform 0.12 is reaffirming its commitment to the JSON output:

https://www.hashicorp.com/blog/terraform-0-12-reliable-json-syntax https://www.terraform.io/docs/internals/json-format.html

There are quite a few details needed to keep a 1:1 (terraform) HCL <-> JSON representation, hopefully we'll get tooling to help us provide better HCL support in the future.

dlespiau avatar Mar 26 '19 12:03 dlespiau

https://github.com/hashicorp/hcl/wiki/Version-Selection I think if we switch to v2 of the hcl library we might get even closer

drubin avatar Jan 05 '20 15:01 drubin