Skip to content
Free since 2015. Built for the engineers who keep things running.

cat /articles/terraform-best-practices-how-to-structure-your-terraform-projects.md

Infrastructure as Code

Terraform best practices — how to structure your Terraform projects.

When starting out with Terraform it’s hard to know what is considered ‘best practice’ in a number of areas. This post is the first in the series which focuses on point 1 in the list, how to structure your Terraform projects.

jackwesleyroper.medium.com09 Apr 2021 · summary

article --summary

The summary

When starting out with Terraform it’s hard to know what is considered ‘best practice’ in a number of areas. This post is the first in the series which focuses on point 1 in the list, how to structure your Terraform projects. The way you split your Terraform code into files is subjecti ve. For a very simple project it may absolutely be easier to lump everything together in one file and forget about it. Modules will be tackled in a separate post, for now, just know that they are really just folders that hold config files that are coded in such a way that the code can be re-used.

Editorial note: This is a summary of an article first published by jackwesleyroper.medium.com. The full piece is on their site.

articles --latest

Latest articles

New from the blogs we follow and the community.

All articles

newsletter --weekly

DevOps Weekly, minus the noise.

The best reads, new jobs and upcoming events, in one email a week.