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

HCL v2 Support? #12

Open
hongkongkiwi opened this issue Sep 17, 2020 · 3 comments
Open

HCL v2 Support? #12

hongkongkiwi opened this issue Sep 17, 2020 · 3 comments

Comments

@hongkongkiwi
Copy link

Can you add support for HCL v2?

@sclevine
Copy link
Owner

Unfortunately, this is not quite as simple to implement as HCL v1: hashicorp/hcl#294

For v5.1.0, I'm considering implementing support for decoding (but not encoding) HCL v2 using https://github.com/tmccombs/hcl2json, which works pretty well and appears to be actively maintained.

Do you need bi-directional support, or just the ability to parse HCL v2 and transform it to other formats?

@toabi
Copy link

toabi commented Nov 12, 2020

I just tried to use this tool to quickly transform YML to HCL, because in terraform we usually use HCL to configure e.g. Helm Charts (and all the examples are YAML).

So for me personally the use-case would be "yml to hcl-v2".

@emanuele-leopardi
Copy link

@toabi may I suggest you to convert to json, terraform accept that as input as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants