The for_each meta-argument creates an instance for each map key or set element.
Its address includes the key, such as lab_server.branch["north"]. The key is part of Terraform identity, so choose one that remains stable when a display name changes. Map values can hold the settings that differ between instances. Removing a key removes that instance without shifting its neighbors. The keys must be known when Terraform constructs the plan and cannot rely on sensitive values. Practice selecting the requested map keys and reading each.value instead of giving every branch the same capacity.
Named keys keep identity separate from collection position.