Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reading and writing HCL files #94

Open
dlespiau opened this issue Jan 23, 2019 · 2 comments
Open

Support reading and writing HCL files #94

dlespiau opened this issue Jan 23, 2019 · 2 comments
Labels
kind/enhancement New feature or request topic/std Relates to the standard library

Comments

@dlespiau
Copy link
Member

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 dlespiau added the kind/enhancement New feature or request label Jan 23, 2019
@dlespiau dlespiau added the topic/std Relates to the standard library label Feb 5, 2019
@dlespiau
Copy link
Member Author

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.

@drubin
Copy link
Contributor

drubin commented Jan 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request topic/std Relates to the standard library
Projects
None yet
Development

No branches or pull requests

2 participants