Terraform genecloud_queue skills attribute throwing HCL syntax error

Trying to define a Genesys Cloud queue with specific skills using the genesyscloud Terraform provider, but the skills block seems to be rejecting my syntax. I’m used to the Node.js SDK where this is just a JSON array of objects, but HCL is being picky.

Here’s the snippet I’m wrestling with:

resource "genesyscloud_queue" "support_queue" {
 name = "Priority Support"
 description = "High priority support queue"
 
 skills {
 skill_id = "abc-123-def"
 priority = 1
 }
 
 skills {
 skill_id = "xyz-789-ghi"
 priority = 2
 }
}

Terraform plan fails with Error: Unsupported argument. The docs are a bit sparse on the exact schema for nested skill blocks in the queue resource. Is it expecting a list of maps instead of repeated blocks? Or am I missing a skill singular vs skills plural nuance in the provider version 1.4.2?

We’ve got a big deployment coming up and I don’t want to manually configure these in the UI. Any chance someone has a working example of a queue with multiple skill priorities defined via CX as Code? Running out of ideas on how to structure this block without it complaining.