DevOps

Tuesday, 16 July 2019

Terraform State Lock

Terraform state lock looks like below:

[ec2-user@ip-ec2-instance]$ ./terraform taint -module=Module_name null_resource.Resource_name
Acquiring state lock. This may take a few moments...
Error locking state: Error acquiring the state lock: ConditionalCheckFailedException: The conditional request failed
        status code: 400, request id: AEMDRUFBFFVJF66Q9ASUAAJG
Lock Info:
  ID:        a793-kto83-jkfyeoi34h3y2gf
  Path:      env/terraform.tfstate
  Operation: OperationTypePlan
  Who:       @765343
  Version:   0.11.3
  Created:   2019-07-16 15:36:04.221201814 +0000 UTC
  Info:


Terraform acquires a state lock to protect the state from being written
by multiple users at the same time. Please resolve the issue above and try
again. For most commands, you can disable locking with the "-lock=false"
flag, but this is not recommended.

No comments:

Post a Comment