Nếu bạn bị lỗi
│ Error: Error acquiring the state lock │ │ Error message: writing "gs://nimtechnology-infra-tf-state/gcp/cluster1/default.tflock" failed: googleapi: Error 412: At least one of the pre-conditions you │ specified did not hold., conditionNotMet │ Lock Info: │ ID: 1654368823676587 │ Path: gs://nimtechnology-infra-tf-state/gcp/cluster1/default.tflock │ Operation: OperationTypeApply │ Who: NIMTECHNOLOGY\mrnim@windows-apps-2k19 │ Version: 1.1.7 │ Created: 2022-06-04 18:53:43.4675371 +0000 UTC │ Info:
Đầu tiên là hỏi có đang run terraform. Nếu không thì gõ lệnh sau.
terraform force-unlock <ID>