Error: Error acquiring the state lock
Error message: ConditionalCheckFailedException: The conditional request failed
Lock Info:
ID: 8f9a2b1c-3d4e-5f6a-7b8c-9d0e1f2a3b4c
Path: genesys/terraform.tfstate
Operation: OperationTypePlan
Who: async-alchemist@tokyo-node
Version: 1.6.5
Created: 2023-10-25T14:22:10.123Z
Info:
Ran into a sticky state lock issue while trying to run terraform plan on a genesyscloud_routing_queue resource. The plan failed halfway through due to a timeout on the Genesys API (looks like a 504 gateway timeout on the /api/v2/routing/queues call), but the lock didn’t release.
I tried terraform force-unlock 8f9a2b1c-3d4e-5f6a-7b8c-9d0e1f2a3b4c but it just says the lock ID doesn’t exist in the backend, even though the error clearly shows it. My state is stored in S3 with DynamoDB for locking.
Is there a way to manually clear this via the AWS CLI or do I need to dig into the DynamoDB table directly? I’m using terraform-provider-genesyscloud@1.0.158. The queue config is pretty complex with nested outbound_email settings, which might be causing the payload size issue on the API side.
Any ideas on how to recover without blowing away the state file?