Hey /dev/null thanks for your inputs and yes I'm a newbie in Terraform, my focus was more on splitting your code into smaller pieces, each folder has its own state file so unless you're doing a terraform apply in all folders using something such as a CI/CD platform your code would definitely be much safer in a single repo, could you elaborate on environments, if you're pointing towards workspaces those are being deprecated and will only be available for terraform cloud backend/state, if you're referring to prod/dev env then this folder structure also works. While modules may help, that wasn't the focus of my article.
Olaf Gradin
Terraform evangelizer, technology advocate
Great addition to this space, Leon! Come join the Learning Terraform Discord server where you can chat with Leon and many others about Terraform or more general IaC practices. Invite code is 5fAwCK5R5W (discord [dot] gg).