Source https://stackoverflow.com/a/66620345 To read https://discuss.hashicorp.com/t/parse-hcl-treating-variables-or-functions-as-raw-strings-hashicorp-hcl/5859/6 https://github.com/apparentlymart/terraform-clean-syntax/blob/master/main.go https://curatedgo.com/r/hcl-is-a-hashicorphcl/index.html (Not very useful) http://blog.johandry.com/post/terranova-terraform-from-go/ Useful examples (useful learning) https://xuanwo.io/2020/04/13/get-started-with-hcl2/ https://discuss.hashicorp.com/t/how-do-i-provide-a-schema-in-go-for-hcl2/33549