I’m trying to bring an existing routing queue under Terraform management, but terraform import keeps choking on the ID format. The queue exists in Genesys Cloud, and I can see the UUID in the URL, but the provider seems to be rejecting it.
Here’s the resource definition in my .tf file:
resource "genesyscloud_routing_queue" "support_queue" {
name = "Premium Support"
description = "Queue for premium tier customers"
acd_settings {
enabled = true
}
}
I ran this command:
terraform import genesyscloud_routing_queue.support_queue 8b7a4c3e-1234-5678-9abc-def012345678
The console spits out this error immediately:
Error: Invalid ID format for genesyscloud_routing_queue. Expected format: <division_id>/<queue_id>
I’ve checked the docs, and they’re pretty sparse on the exact import syntax for queues. I tried guessing that it might need the division ID prefixed, so I looked up the division ID via the API (GET /api/v2/organizations) and used the root organization ID. I tried:
terraform import genesyscloud_routing_queue.support_queue a1b2c3d4-5678-90ab-cdef-1234567890ab/8b7a4c3e-1234-5678-9abc-def012345678
That just failed with a 404 Not Found. I also tried just the queue ID again to make sure I didn’t typo it, same result. The queue is definitely in the default division. I’m using Terraform 1.6.4 and the Genesys Cloud provider 1.102.0.
Is there a specific format I’m missing for the import address? Or do I need to create a blank resource in state first? I’ve been staring at this for an hour and it feels like I’m missing something obvious about how the provider parses the import ID.