We are trying to define a Genesys Cloud queue with specific skills using the Terraform CX as Code provider. The goal is to ensure that the queue is configured correctly with the necessary skills for routing interactions.
Here is the current Terraform configuration we have:
resource "genesyscloud_routing_queue" "test_queue" {
name = "Test Queue"
description = "Queue for testing purposes"
skills = [
{
id = "skill-id-1"
name = "Skill 1"
},
{
id = "skill-id-2"
name = "Skill 2"
}
]
}
However, when we run terraform apply, we get the following error:
Error: Error creating routing queue: 400 Bad Request
with genesyscloud_routing_queue.test_queue,
on main.tf line 1, in resource "genesyscloud_routing_queue" "test_queue":
1: resource "genesyscloud_routing_queue" "test_queue" {
The error message does not provide much detail, but it seems like the issue is related to the skills configuration. We have verified that the skill IDs are correct and exist in our Genesys Cloud instance.
Has anyone encountered this issue before? What is the correct way to define skills on a queue using the CX as Code provider in Terraform?