terraform apply stuck on error acquiring the state lock
Killed a terraform apply halfway through with Ctrl+C and now every plan dies. Terraform 1.6.6 with an S3 backend and a DynamoDB lock table. Error says Error acquiring the state lock: ConditionalCheckFailedException: The conditional request failed and prints a Lock Info block with an ID and Operation: OperationTypeApply. The apply was modifying an RDS instance at the time, so I'm nervous about just force-unlocking. What's the safest way out here?
4 replies