I’m trying to define a Genesys Cloud queue with specific skills using the genesyscloud_queue resource in Terraform. I need this queue to be instrumented in New Relic, so the skill assignment has to be precise for my custom event parsing. The apply fails with a validation error on the skills_block.
Here is the relevant snippet:
resource "genesyscloud_queue" "support_queue" {
name = "Support Tier 1"
description = "General support queue"
skills {
skill_id = "abc123-def456-789"
priority = 1
}
}
The error message is:
Error: expected skills to be a list, got map[string]interface{}
I’ve checked the provider documentation, and it mentions skills should be a block list. I’m not sure if I’m missing a nested structure or if the syntax for the skills_block has changed in the latest provider version. I’ve tried removing the quotes around skill_id, but that doesn’t help. The goal is to get this resource created so I can tag the queue ID in my New Relic dashboards.
Can anyone share a working example of the skills configuration inside a queue resource?