{"uid":"cap_Us9hMJysUA_fLRrI3JPLC","slug":"saylor-innovations-guide-library-terraform-state-lock-and-drift-309846ae","name":"Saylor Innovations Guide Library – Terraform State Lock and Drift","description":"Fix Terraform state lock errors and drift - force-unlock safely, state backups, moved and import blocks, refresh-only plans and unwanted destroys","url":"https://saylorinnovations.com/api/kb/terraform-state-lock-and-drift?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["id","t","c","body"],"properties":{"c":{"type":"string","description":"Category of the guide"},"t":{"type":"string","description":"Title of the guide"},"id":{"type":"string","description":"Identifier of the record"},"body":{"type":"string","description":"Main body text"},"price":{"type":["number","null"],"description":"Price"},"license":{"type":"string","description":"License identifier"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mGaAj-6KCHGrSwnes0fsy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a structured knowledge guide on resolving Terraform state lock errors and drift, covering force-unlock, state backups, moved/import blocks, refresh-only plans, and preventing unwanted destroys.","exampleAgentPrompt":"Can you pull up the Saylor Innovations guide on fixing Terraform state lock errors and drift — I need to know how to force-unlock safely and avoid unwanted destroys in my plan?","exampleUseCases":[{"title":"Resolving a stuck Terraform state lock","prompt":"My Terraform state is locked and the pipeline is blocked — can you fetch the guide on safely force-unlocking Terraform state without corrupting anything?"},{"title":"Preventing unexpected Terraform destroy operations","prompt":"Our Terraform plan keeps showing a bunch of unexpected resource destroys — can you pull up the guide on how to use refresh-only plans and moved blocks to avoid that?"},{"title":"Recovering from Terraform state drift","prompt":"Our infrastructure has drifted from what Terraform has in state — can you get me the guide on how to reconcile drift safely including state backups and import blocks?"}],"resultDescription":"A JSON object containing a unique guide identifier, title, category label, and a detailed body text explaining how to fix Terraform state lock errors and drift — including force-unlock procedures, state backup strategies, moved and import block usage, refresh-only plan workflows, and techniques to prevent unwanted destroys. May also include license and price metadata.","failureModes":["HTTP 402 if payment is not provided or insufficient USDC balance","HTTP 404 if the guide path is no longer valid","HTTP 500 if the upstream knowledge store is unavailable","Empty or malformed body if the guide content is missing"],"whenToPreferThis":"Choose this endpoint when an agent or developer needs authoritative, pre-written guidance on Terraform state management topics — specifically state locking, drift, force-unlock, and destroy prevention — and wants a structured, machine-readable knowledge article rather than a live Terraform API call or infrastructure introspection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:38:02.536Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-guide-library-terraform-state-lock-and-drift-309846ae"}