terraform-state-manager

Automate Terraform state imports, moves, removals, and backend migrations.

17|3|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/jidohyun/NOD --skill terraform-state-manager-jidohyun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-state-manager
Source: https://github.com/jidohyun/NOD/tree/main/.agents/skills/terraform-state-manager
Command: npx skills add https://github.com/jidohyun/NOD --skill terraform-state-manager-jidohyun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Terraform state management can become fragile when resources are renamed, moved, or when backends need migration. This skill provides safe, repeatable operations to import existing resources, move state between addresses or modules, and remove resources from Terraform control without destroying them.

Core Features & Use Cases

  • Import existing cloud resources into Terraform management.
  • Move and rename state references using Terraform's state mv.
  • Remove resources from Terraform control while keeping the infrastructure running.
  • Migrate state between backends (e.g., local to remote backends) with minimal downtime.

Quick Start

Import an existing cloud resource into Terraform state and verify the result with a plan.

Frequently Asked Questions about terraform-state-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I import existing cloud resources into Terraform state management?

You can safely import existing cloud resources by automating the import process and verifying the result with a plan check. This brings existing infrastructure under Terraform control without modifying or destroying the resources.

Can I move and rename state references in Terraform without destroying infrastructure?

Yes, you can move and rename state references without destroying infrastructure by using Terraform's state mv operations. This allows you to safely refactor state addresses when resources are renamed or moved between modules.

What is the best way to migrate Terraform backends with minimal downtime?

The best way to migrate Terraform backends with minimal downtime is to use structured migration steps with safe-guard rails like backups and plan checks. This ensures a repeatable transition, such as moving from local to remote backends.

How do I remove resources from Terraform control while keeping the infrastructure running?

You can remove resources from Terraform control while keeping the infrastructure running by safely removing them from the state. This action drops Terraform management of the resource without triggering its physical destruction.

What are the safe-guard rails for fixing Terraform state drift?

The safe-guard rails for fixing Terraform state drift include requiring backups and performing plan checks. These rails ensure that operations to fix drift or refactor state do not accidentally destroy your active resources.