Terraform count vs for_each: Instance Addresses Are a Contract, Not a Style Choice
Removing a list item with Terraform count can cause a cascade of destroy/recreate actions for all later instances. Using for_each keyed by a stable identifier avoids that by giving each instance a unique address.