Trying to spin up a routing queue with specific skill assignments via Terraform, but the provider keeps barfing on the skills block. We’re running genesyscloud provider 1.42.0 against our asia-pacific-1 tenant. The HCL looks solid on paper, yet terraform apply throws a validation error about mismatched skill IDs.
Here’s the resource block I’m dropping into the module:
resource "genesyscloud_routing_queue" "support_eng" {
name = "Engineering Support"
description = "Tier 2 engineering queue"
enabled = true
skills {
name = "cloud_platform"
level = 5
}
skills {
name = "api_integration"
level = 3
}
}
The error message points straight to the skills attribute. Says it expects a map of strings but gets a list of objects. I’ve checked the docs and the OpenAPI spec, both show skills as an array of objects with name and level. Maybe the Terraform wrapper is doing some weird flattening behind the scenes? Or is there a separate data source lookup I need to wire in first?
Running terraform plan just hangs on that block before spitting out Error: expected skills to be a map, got list. We’ve got a pipeline that auto-generates queues from a JSON manifest, so hardcoding skill IDs isn’t really an option. The JS SDK handles this fine when we POST to /api/v2/routing/queues, but the IaC path feels broken. Anyone else hit this mismatch when wiring up skills in the provider? What’s the actual HCL syntax the parser wants?
Tried swapping it to a map(string) format but the provider rejects the level field entirely. The REST API accepts the JSON payload without complaints, so the schema definition in the Go backend must be misaligned with the actual endpoint contract.
Checked the state file, nothing weird there. Just stuck on the schema validation.