Trying to migrate our queue setup from manual clicks to Terraform. The goal is to import an existing queue into state so I can start managing it via code. I’ve got the queue ID from the admin UI, but terraform import keeps barfing.
Here’s the command I’m running:
terraform import gen_cloud_routing_queue.main a1b2c3d4-5678-90ab-cdef-1234567890ab
The error is straightforward but unhelpful:
Error: no resource matches the ID "a1b2c3d4-5678-90ab-cdef-1234567890ab"
I’ve checked the docs and they say the ID should be the UUID. I’ve also tried importing with the queue name, but that fails too. The resource block looks standard:
resource "gen_cloud_routing_queue" "main" {
name = "Support Queue"
description = "Main support queue"
}
I’m not using any custom attributes yet, just trying to get the basic import working. The queue exists, I can see it in the UI, and I can fetch it via /api/v2//queues/{id} without issues. So why won’t Terraform recognize it?
I’ve also tried clearing the state file and starting fresh, but same result. Is there a specific format for the ID I’m missing? Or does the provider expect something else, like a division ID appended to it?
I’m on Terraform 1.6.5 and the Genesys Cloud provider v1.12.0. The environment is a standard EU data center. Any ideas why this import is failing? It feels like a simple thing but I’m stuck.