Ravi Sir's Cards › DevOps
Chapter 36: Terraform count for_each dynamic lifecycle and depends_on: Cards
मराठी cards · Open the chapter
Revision cards

Lesson: 36.1 count — N copies of the same thing

Lesson: 36.2 for_each — named copies that survive edits

Lesson: 36.3 dynamic blocks — repeat a nested block from data

Lesson: 36.4 lifecycle — control how changes happen

Lesson: 36.5 depends_on — when Terraform cannot see the link
Interview cards
![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

Lesson: 36.2 for_each — named copies that survive edits

Lesson: 36.3 dynamic blocks — repeat a nested block from data

Lesson: 36.4 lifecycle — control how changes happen

Lesson: 36.5 depends_on — when Terraform cannot see the link
Comparison cards
![count vs for_each. Both make many copies from one resource block.count: copies by number, address name[0].for_each: copies by key, address name["payments"].](/devops/ravi-sirs-cards/cards/en/cmp-count-vs-for-each.webp)
Lesson: Chapter 36: Terraform count for_each dynamic lifecycle and depends_on

Lesson: Chapter 36: Terraform count for_each dynamic lifecycle and depends_on

Lesson: Chapter 36: Terraform count for_each dynamic lifecycle and depends_on