Trying to spin up multiple queues from a YAML file using for_each in Terraform. The parsing works fine in locals, but the genesyscloud_routing_queue resource throws a weird error.
Here is the block:
resource "genesyscloud_routing_queue" "test_queues" {
for_each = var.queues
name = each.value.name
}
Error says invalid address for each iterator.
- Provider 1.85.0
- Terraform 1.6
- Var is a map of objects
Why is the iterator not resolving?