I’m trying to define a Genesys Cloud queue with specific skills using the CX as Code Terraform provider, but the deployment fails with a validation error.
Here’s the snippet I’m using:
resource "genesys_cloud_routing_queue" "test_queue" {
name = "Test Support Queue"
queue_skills {
skill_id = "skill-uuid-123"
priority = 1
}
}
The error returned during terraform apply is:
Error: Unsupported argument: An argument named "queue_skills" is not expected here.
I’ve checked the provider documentation and the API docs for /api/v2/routing/queues, which clearly show a queue_skills array in the request body. I expected the Terraform resource to map directly to this structure.
Is queue_skills not supported in the current version of the provider, or is there a different block structure I should be using? I’ve tried using skills instead, but that doesn’t seem to exist either. I’m on provider version 2.0.187.
Just want to get this basic config working before adding more complexity. The hybrid setup needs these skills mapped correctly for routing to work.