claranet / jinjaform

Terraform wrapper with Jinja2 templates
MIT License
35 stars 8 forks source link

Only use .tfvars files for variables #2

Closed raymondbutcher closed 5 years ago

raymondbutcher commented 5 years ago

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.

raymondbutcher commented 5 years ago

Also merge *.tfvars files from all directories into terraform.tfvars and document the behaviour.

raymondbutcher commented 5 years ago

Done in 46cbef77f8cf05941238b418dfdfcb4b38d0fd97