Referencing for_each resources and modules
In one line: A for_each resource is a map of instances, so convert with values() or a for expression before a splat, and index with matching keys.
You’ve read your 2 free Terraform Pro 002 lessons
Sign up free to read every lesson — your progress is saved.