Hey folks,
Running into a headache with the genesyscloud_routing_queue resource in the Genesys Cloud Terraform provider. I’m trying to define a queue with specific skills via code, but the apply keeps bombing out with a validation error on the skills block.
I’ve been staring at the docs and the examples, but the syntax for passing the skill IDs seems to be tripping me up. Here’s the relevant chunk of my HCL:
resource "genesyscloud_routing_queue" "support_queue" {
name = "Tier 1 Support"
description = "General support queue"
skills {
skill_id = "550e8400-e29b-41d4-a716-446655440000"
}
members {
member_id = "12345678-1234-1234-1234-123456789012"
priority = 1
}
}
The error message I’m getting is pretty vague:
Error: Provider produced inconsistent result after apply
When applying changes to genesyscloud_routing_queue.support_queue, provider
"provider[registry.terraform.io/mypurecloud/genesyscloud]" produced an
unexpected new value: .skills[0].skill_id: was null, but now
"c4isfstring"."550e8400-e29b-41d4-a716-446655440000".
I’ve tried wrapping the skill ID in quotes, using a list of maps, and even just passing the ID directly without the skill_id key, but nothing sticks. The plan phase looks fine, but the apply fails.
Is there a specific way the provider expects the skills block to be structured? I’ve checked the provider version (1.18.0) and it seems up to date. I can see the skill ID is valid since I pulled it from the API directly.
Just want to get this queue provisioned without manually tweaking it in the UI afterwards. Any pointers would be appreciated.