Gen_cloud_queue skills block throwing validation error on apply

The docs state: “The skills block is a list of objects containing the skill id.” I’m trying to define a queue with specific skills in Terraform using the genesyscloud provider. The plan phase looks clean, no diff issues. But the apply fails immediately.

Here is the resource block:

resource "genesyscloud_queue" "support_tier1" {
 name = "Support Tier 1"
 description = "L1 Support Queue"
 
 skills {
 id = "abc123-skill-id"
 }
 
 skills {
 id = "def456-skill-id"
 }
}

The error message is:

Error: expected skills.# to be one of ["0"], got "2"

It’s complaining about the count. The documentation shows a singular skills block in the example, but implies a list. I tried wrapping it in a list syntax like skills = [{id = "abc123"}] but that throws a syntax error in HCL. The provider schema seems to expect a single instance or an empty block, yet I need multiple skills attached.

I checked the provider source code on GitHub. The schema definition for skills is marked as Type: schema.TypeList, NestedType: &schema.Resource{}. It doesn’t have MaxItems set to 1 in the comments, but the validation error suggests it’s treating it as a single item or having trouble with the nested structure parsing.

We’ve been using the API directly before (POST /api/v2/queues) and passing the skills array works fine there. The JSON payload is just {"skills": [{"id": "..."}, {"id": "..."}]}. Why does the Terraform provider choke on this?

Is there a specific way to iterate over skills or a different attribute I should be using? I don’t want to write a custom data source to fetch the queue and then use a local-exec script to patch the skills via API. That feels wrong.

The docs are sparse on the skills block configuration. Just saying “list of objects” isn’t enough when the provider validation rejects multiple blocks.

Running terraform 1.6.5 and provider v1.38.2.

Any ideas on the correct syntax? I’m stuck on this for two days now.

Just need the HCL to pass validation.

Thanks.