You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more difficult, since without knowing the schema for the data, it isn't possible to definitively know how to convert to hcl (for example, should var3 be an attribute or a block?).
But maybe there are reasonable assumptions that could be made?
Since this is not something you could extract from just data alone ( as json just describes object data, while hcl is a notation for configuration), it is probably better to build this programmatically, as something needs to understand the meaning of this data, i would suggest https://github.com/ahzhezhe/terraform-generator as an example but there are many others out there.
Activity
tmccombs commentedon Oct 8, 2019
This is more difficult, since without knowing the schema for the data, it isn't possible to definitively know how to convert to hcl (for example, should
var3be an attribute or a block?).But maybe there are reasonable assumptions that could be made?
Bump github.com/zclconf/go-cty from 1.8.1 to 1.9.0 (#2)
DarkMukke commentedon Jul 5, 2022
Since this is not something you could extract from just data alone ( as json just describes object data, while hcl is a notation for configuration), it is probably better to build this programmatically, as something needs to understand the meaning of this data, i would suggest https://github.com/ahzhezhe/terraform-generator as an example but there are many others out there.