Hey everyone,
I’m trying to stand up a new support queue in Genesys Cloud using the CX as Code Terraform provider. The basic queue resource creates fine, but I’m hitting a wall when trying to attach skills to it.
Here’s the snippet I’m working with:
resource "genesyscloud_routing_queue" "support_queue" {
name = "Technical Support"
description = "L1 Technical Support Queue"
routing_type = "LongestIdleAgent"
skills {
skill_id = "12345-67890-abcd"
skill_name = "networking"
}
# ... other settings
}
`
When I run `terraform apply`, it fails with:
Error: 400 Bad Request
Message: Invalid input for ‘skills’. Expected a list of objects with ‘id’ and ‘name’ fields.
I've checked the provider docs, and it looks like the `skills` block expects a specific structure. I've tried changing `skill_id` to just `id` and removing `skill_name`, but that doesn't seem to work either. The API docs for `/api/v2/routing/queues` show a `skillIds` array, but the Terraform resource seems different.
Has anyone successfully configured skills on a queue via CX as Code? What's the correct attribute name for the skill identifier in the `skills` block? I'm guessing it might be `id` instead of `skill_id`, but I want to make sure before I break my state file.