terraform.tfstate.tflock file that records the information of the current process and is written to the backend bucket.{"ID":"1234abcd-1234-cdef-5678-1234567890ab","Operation":"OperationTypePlan","Info":"","Who":"UserName@Host","Version":"1.3.0","Created":"2006-01-02T15:04:05Z07:00","Path":"terraform.tfstate.tflock"}
terraform.tfstate.tflock file to the bucket at the same time. The COS backend implements the lock as a Tencent Cloud tag in the format of tencentcloud-terraform-lock:xxxxxxxxx (here, xxxxxxxxx is the MD5 of the bucket:lockfile), which is released automatically after the file is written successfully.plan or `apply).terraform.tfstate.tflock as the state lock.terraform.tfstate.tflock to cancel the state lock.╷│ Error: Error acquiring the state lock││ Error message: lock file terraform.tfstate.tflock exists│ Lock Info:│ ID: 1234abcd1234cdef56781234567890ab│ Path: terraform.tfstate.tflock│ Operation: OperationTypePlan│ Who: UserName@Host│ Version: 1.1.2│ Created: 2006-01-02T15:04:05Z07:00│ 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.╵
-lock=false as prompted to ignore the state lock for re-execution (not recommended).terraform force-unlock -force 1234abcd1234cdef56781234567890ab
terraform.tfstate.tflock file in the bucket to unlock.│ Error: Error acquiring the state lock││ Error message: 2 errors occurred:│ * failed to create tag: tencentcloud-terraform-lock -> xxxxxxxxx: [TencentCloudSDKError] Code=ResourceInUse.TagDuplicate, Message=tagKey-tagValue have exists.,│ RequestId=47c57b0b-2491-42cd-9f29-0b14802681e5│ * lock file terraform/state/terraform.tfstate.tflock not exists││││ 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.
tencentcloud-terraform-lock:xxxxxxxxx tag in the console or via the TencentCloud API DeleteTags. Below are directions you can follow in the console:
Feedback