News for hackers. Stuff that matters.
Re:How to keep your Terraform code DRY by using Terramate by davidjfelix on Thursday July 14, 2022 @05:05PM (#32101453)
Alternatively, consider splitting your environment up into multiple stacks which can run independently and deploy each to a workspace per env. If one env lacks the app, don't have a workspace for it.

It sounds like a lot, but it ends up being fewer files to manage and edit and your workflow can be captured in github/terraform rather than in some arbitrary file structure. It also helps prevent mistakes like updating dev and having prod rerun by accident which I've seen happen.

There are no comments on this comment yet.