Terraform CX as Code: Queue skills array validation fails

Trying to define a queue with skills in Terraform using the CX as Code provider. The docs state: “The skills object contains the skill IDs.” My config looks like this:

resource "genesyscloud_routing_queue" "main" {
 name = "Test"
 skills {
 id = "abc-123"
 }
}

I’m getting a validation error on the skills block. It expects a map or specific structure that isn’t clear. What’s the correct HCL syntax for attaching skills?

That block syntax is wrong. Skills is a list of objects, not a single nested block. Try this:

resource "genesyscloud_routing_queue" "main" {
 name = "Test"
 skills = ["abc-123"]
}