Terraform apply fails with:
Error: Missing attribute definition
on queues.tf line 12, in resource “genesyscloud_routing_queue” “support_queue”:
12: skills {
The documentation for the genesyscloud_routing_queue resource is thin on the ground regarding the nested skills block structure. I’m trying to define a queue with a specific set of skills and their proficiency levels using the official Genesys Cloud Terraform provider (v1.0.12). The HCL below looks syntactically correct to me, but the parser is choking on the skills block.
resource "genesyscloud_routing_queue" "support_queue" {
name = "Support Tier 1"
description = "General support queue"
skills {
name = "english"
proficiency = 5
}
skills {
name = "technical_support"
proficiency = 3
}
}
I’ve checked the API docs for /api/v2//queues and the request body clearly expects a skills array with objects containing id and proficiency, not name. But in Terraform, we can’t pass the skill ID directly because the skill resource creation and queue creation might happen in parallel or the ID isn’t available in the same module scope.
Does the provider expect a lookup helper? Or is there a specific way to reference skill names so the provider resolves the IDs automatically during apply? I tried passing the skill ID directly using a data source lookup, but that introduces a hard dependency that breaks our modular deployment order.
data "genesyscloud_routing_skill" "en_skill" {
name = "english"
}
Using the data source ID in the skills block results in a different error about type mismatch. The proficiency field is also throwing warnings if I don’t wrap it in a specific sub-block. The provider seems to expect a map or a complex object structure that isn’t documented clearly.
We’ve got a deadline to deploy this environment update and I’m stuck on this syntax. The UI allows me to add skills by name, so there has to be a way to do this in code without hardcoding UUIDs. Just need the correct HCL structure for the skills attribute.