Terraform Good Practices by Google Cloud

A recurring theme in conversations I have been having the last few months have been how to write more re-usable code in Terraform. Co-workers or clients have started out by themself or with some guidance and links to introductory manuals, but have run into a wall as their codebase grows.

A few days ago I noticed that Google Cloud maintains a great guide on what they think are best practices for Terraform (even though I don’t like the term “best” practices and would prefer the term “good” as there are always trade offs, suboptimal choices taken because of some valid reason etc.). The entire guide can be found at https://cloud.google.com/docs/terraform/best-practices-for-terraform and is well worth a bookmark