DEV Community

Discussion on: Main-module approach for handling multiple environments in Terraform

Collapse
r0bnet profile image
rob

Nice article. In our projects it looks really very similar and we're using the same/comparable approach. It works fine for almost every situation.
The only problem we have is if we have bigger differences between environments. I know that there shouldn't be much differences except for example scaling and number of machines in a cluster etc. But sometimes we have one or the other resource which should only be deployed to prod for example. We're more or less fighting with count = 0 but that's a nasty workaround. Hope that there will be conditional modules sooner or later. Maybe i should take a look at Pulumi.