Closed carsonoid closed 4 years ago
Hi,
I did a little research about this. From what I understand about this is:
With Terraform 0.12 they started to use HCL2. HCL2 has some differences from classic HCl(expressions, static-analysis, etc..).Therefore, converting it to JSON can be tricky and I think the parser for classic HCL and HCL2 should be different parsers in order to keep current functionality. Maybe, we can use this: hcl2json to convert newly added syntax to classic JSON.
@Salamandastron1 What do you think about this issue? Maybe, you can add both HCl and HCL2 implementations to your PR!
Hi @boranx! I definitely think it would be a great addition. The diff on my PR is pretty big though so I'm hesitant to add any more. If the PR gets accepted I'd be happy to look further into this :)
I'm making a PR about this feature.
Awesome! Thanks for your work @boranx
It looks like the Terraform 0.12 syntax isn't supported.
.tf
snippet:Error: