Counting and Modules

What is the current preferred method of counting modules in TF12? Historically I just count every resource within the module based on count variable I define. Count is now reserved within a module, but as far as I have been able to tell, it doesn’t do anything. Is there a new way I should be implementing this, or am I still effectively creating modules with zero resources when I want to count = 0 a module?

Hi @tbell83,

The name count is reserved for a future planned feature to have Terraform itself automatically implement repetition for a module.

However, right now the situation is still the same as it was in prior versions with the exception of the name being reserved. You can continue using the previous technique, by using a different name for the variable that represents the count.