Skip to content
SkilVault
Sign inGet started

terraform-state-surgery

DevOps & Infrastructure
Signed by SkilVault

Guides careful, user-confirmed edits to Terraform state, covering importing existing cloud resources, renaming resources and moving them between modules, releasing resources without deleting them, migrating state to a new backend, and clearing stale state locks. The small configuration edits these operations require, such as the resource block an import needs or a block rename during an address refactor, are part of the work. Use when the user wants to bring unmanaged infrastructure under Terraform control, refactor resource addresses in state, hand a resource to another team, change where state is stored, or recover from a lock left by a crashed run. Not for designing new modules, provisioning brand-new infrastructure, or destroying live resources.

Version
v1.0.0
Size
16 KB
Updated
2026-10-11
$ skilvault read --manual terraform-state-surgery

Your client verifies the signature before reading. This explicit manual read is available on every plan. Free automatically loads five chosen skills; paid plans automatically load relevant skills across the library.