Need some help troubleshooting my terraform setup. trying to spin up a bunch of Genesys cloud queues using a yaml file instead of hardcoding them. the yaml looks fine but the for_each loop keeps blowing up during apply. i’m using the genesys cloud terraform provider version 1.1.0. here is the block i’ve got so far:
variable "queue_config" {
type = any
default = file(".tfvars.yaml")
}
resource "genesyscloud_routing_queue" "team_queues" {
for_each = var.queue_config.queues
name = each.value.name
description = each.value.desc
acw_wrapup_timeout = 30
}
when i run terraform plan it’s throwing a type mismatch error saying it expects a map of strings but gets a list. i thought yaml would parse into a map automatically. tried wrapping it in tomap but then the provider complains about missing required attributes like flow_id. the yaml just has a simple list of queue names and descriptions. maybe i need to flatten it first? don’t know how to map the yaml structure to what the routing_queue resource actually expects. the api docs show the queue object needs a skill_group_id or something but i can’t find the exact field name in the provider docs. running this on my local machine with tf 1.5.7. any pointers on getting the for_each to actually read the yaml properly?