How to convert write hcl files as tfvars?
We use Terraformer
to acquire state and HCL
files, which we then utilize in Terraform
modules to manage our infrastructure and prevent drift. As tfvars
files are fed as variables to the module, we need tfvars
output to automate the entire process. Here is a simple illustration:
Parsing terraform tfvars file with Golang
I am trying the dynamically manipulate the tfvars file using golang.