Ravi Sir's Cards › Chapter 36: Terraform count for_each dynamic lifecycle and depends_on
When do you use count?
When do you use count? count creates a number of identical copies of a resource, addressed as name[0], name[1]. It is also used as an on/off switch with count = var.enabled ? 1 : 0.
![When do you use count? count creates a number of identical copies of a resource, addressed as name[0], name[1]. It is also used as an on/off switch with count = var.enabled ? 1 : 0.](/devops/ravi-sirs-cards/cards/en/int-tf-count-when.webp)
Lesson: 36.1 count — N copies of the same thing · मराठी card