-
Notifications
You must be signed in to change notification settings - Fork 54
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
Convert from JSON to HCL2 #2
Comments
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 But maybe there are reasonable assumptions that could be made? |
Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty) from 1.8.1 to 1.9.0. - [Release notes](https://github.com/zclconf/go-cty/releases) - [Changelog](https://github.com/zclconf/go-cty/blob/main/CHANGELOG.md) - [Commits](zclconf/go-cty@v1.8.1...v1.9.0) --- updated-dependencies: - dependency-name: github.com/zclconf/go-cty dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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. |
Having a
result.json
file with the following content:Is it possible to retrieve HCL2 content back?
The text was updated successfully, but these errors were encountered: