Terraform provider fails to map skills to Genesys Cloud queue

Stuck on defining a Genesys Cloud queue with skills using the CX as Code Terraform provider. The genesyscloud_routing_queue resource accepts a skills block, but applying it results in a schema mismatch error. The API expects a list of skill IDs, yet the provider documentation suggests a nested object structure. How do I correctly map the skill IDs in the HCL file? See Genesys Docs for context.

The easiest fix here is this is to explicitly define the id field within each skill block, as the provider schema requires an object structure rather than a flat list of strings.

resource "genesyscloud_routing_queue" "my_queue" {
 name = "Support Queue"
 description = "Primary support queue"

 skills {
 id = "skill-id-12345"
 }

 skills {
 id = "skill-id-67890"
 }

 # Ensure the queue is properly linked to routing configuration
 routing_type = "longest_idle"
}

This structure aligns with the Genesys Cloud API expectation for queue skill assignments.