Running terraform import geneosyscloud_routing_queue.support_queue {queue_id} returns a hard failure. The CLI output says:
Error: No matching resource found
The ID is definitely correct. I pulled it directly from the Genesys Cloud admin UI and verified it via the REST API (GET /api/v2/routing/queues/{queue_id}). The API returns a 200 OK with the full queue JSON, including the name, description, and outbound_email_address. I’ve also tried using the genesys-cloud-terraform-provider debug logs, but they just repeat the same error without explaining why the lookup fails.
Here’s the resource block I’m trying to import into:
resource "genesyscloud_routing_queue" "support_queue" {
name = "Customer Support"
description = "General support inquiries"
out_of_office_enabled = false
enable_apd = true
}
I’ve checked the provider documentation, and it seems like routing_queue is a supported importable resource. The provider version is 1.23.0. I’m using the standard OAuth2 client credentials flow for authentication, which works fine for other resources like genesyscloud_user. The token has the routing:queue scope.
Is there a specific attribute I need to match exactly for the import to work? Or is this a known bug with the queue resource type? I’ve tried clearing the state file and re-running, but it’s the same result. The queue exists, the ID is valid, and the API confirms it. Terraform just refuses to see it.
Any ideas on how to debug this further? I’m stuck.