The code that reads .tf files is very basic and incomplete. To do it properly, it would require a lot more effort. To simplify things, only look at .tfvars files for variables, and don't render them as templates. Consider using pyhcl which has some issues parsing HCL but I suspect is fine with tfvars files. This should allow for other variable types besides strings.
The code that reads .tf files is very basic and incomplete. To do it properly, it would require a lot more effort. To simplify things, only look at .tfvars files for variables, and don't render them as templates. Consider using pyhcl which has some issues parsing HCL but I suspect is fine with tfvars files. This should allow for other variable types besides strings.