Lock a Terraform workspace's state
One step with Harness. We can help you get access.
Get something done
Lock a Terraform workspace's state
with Harness
Works with AI assistants
Use Harness: its Harness Tf Standard Backend API lets you lock a Terraform workspace's state in a single step (POST /iacm/api/orgs/{org}/projects/{project}/workspaces/{workspace}/terraform-backend/lock). Harness also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I lock a workspace so two Terraform runs don't change state at once?
- Who is holding the lock and for which operation when a workspace is locked?
Say it to your AI assistant
- Lock workspace {workspace} in {org}/{project} with lock {lock_id} for operation {operation}, version {version}, created {created}.
- Take lock {lock_id} on {workspace} ({org}/{project}) for {operation} by {who}, version {version}, at {created}.
For your developer
POST /iacm/api/orgs/{org}/projects/{project}/workspaces/{workspace}/terraform-backend/lock in Harness Tf Standard Backend API. Full spec on APIs.io.