/terraform-read-play

An attempt to learn Go by trying to read (then write) Terraform HCL files for Infra repo usage.

Primary LanguageGo

Source

To read

  1. https://discuss.hashicorp.com/t/parse-hcl-treating-variables-or-functions-as-raw-strings-hashicorp-hcl/5859/6
    1. https://github.com/apparentlymart/terraform-clean-syntax/blob/master/main.go
  2. https://curatedgo.com/r/hcl-is-a-hashicorphcl/index.html
  3. (Not very useful) http://blog.johandry.com/post/terranova-terraform-from-go/

Useful examples

  1. (useful learning) https://xuanwo.io/2020/04/13/get-started-with-hcl2/
  2. https://discuss.hashicorp.com/t/how-do-i-provide-a-schema-in-go-for-hcl2/33549