{"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"}
╷│ 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
忽略状态锁重新执行(不推荐该方式)。terraform force-unlock -force 1234abcd1234cdef56781234567890ab
│ 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.
本页内容是否解决了您的问题?