Error: error reading Routing Queue (id: 12345): GET https://api.mypurecloud.com/api/v2/routing/queues/12345: 409 Conflict
State lock error: LockInfo{Path: genesyscloud_routing_queue.main, ID: ...}
I am running terraform plan on a Windows 11 machine with Terraform v1.6.4 and the Genesys Cloud provider v1.12.0. The plan consistently reports drift on genesyscloud_routing_queue resources, claiming attributes like outbound_call_appearance have changed. However, my local state matches the API response exactly when I hit the endpoint via Postman.
The 409 error suggests a state lock issue, but I have already run terraform force-unlock with the lock ID. The lock metadata in the state file seems stale. Is this a known issue with the provider handling concurrent reads during plan phases?
Here is the resource block:
resource "genesyscloud_routing_queue" "main" {
name = "Support Queue"
description = "Main support queue"
outbound_call_appearance = "system"
}
The plan output shows:
~ resource "genesyscloud_routing_queue" "main" {
~ outbound_call_appearance = "system" -> (known after apply)
}
Why is the provider treating this as drift when the value is static? Am I missing a lifecycle rule or is this a bug in the diff calculation logic?