Hey folks,
I’m trying to get our existing Genesys Cloud environment under Terraform control using the genesyscloud provider. We have a pretty standard setup with about 20 routing queues for our WEM adherence tracking. I’ve built the .tf files for these queues, but when I try to import them into the state, everything falls apart.
I’m running this command:
terraform import module.wfm.genesyscloud_routing_queue.main_queue 8f7a9b2c-1d3e-4f5a-b6c7-8d9e0f1a2b3c
The GUID is definitely correct. I copied it straight from the UI URL. But Terraform throws a 404 error immediately. It claims the resource doesn’t exist, even though I can see it right there in the admin console.
Here is the error payload:
Error: Error importing object: Error getting routing queue: GET https://api.mypurecloud.com/api/v2/routing/queues/8f7a9b2c-1d3e-4f5a-b6c7-8d9e0f1a2b3c: 404 Not Found
{
"errors": [
{
"code": "not_found",
"message": "Queue not found"
}
]
}
I’ve checked the provider configuration. The base_url is set correctly. I can use the same OAuth token to call /api/v2/routing/queues via Postman and get a 200 OK with all the queues listed. So the auth seems fine.
Is there a specific permission I’m missing for the import command? Or does the provider have a bug with the import logic for queues? I’ve tried re-logging in and clearing the cache, but nothing changes.
This is blocking our entire migration to IaC. I need to know if I’m doing something wrong or if this is a known issue with the current provider version. I’m using genesyscloud version 1.15.0.