terraform-state-manager

Manage Terraform state files with remote backends and state operations.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dengineproblem/agents-monorepo --skill terraform-state-manager-dengineproblem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-state-manager
Source: https://github.com/dengineproblem/agents-monorepo/tree/main/.claude/skills/terraform-state-manager
Command: npx skills add https://github.com/dengineproblem/agents-monorepo --skill terraform-state-manager-dengineproblem

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and tools for managing Terraform state files, ensuring data integrity, security, and efficient collaboration.

Core Features & Use Cases

  • Remote Backends: Configure and manage secure remote backends (AWS S3, Azure Blob Storage, Google Cloud Storage) for state storage and locking.
  • State Operations: Perform essential state manipulations like listing, showing, moving, importing, and removing resources.
  • Workspace Management: Handle multiple environments using Terraform workspaces.
  • Security & Recovery: Implement best practices for state file security, encryption, and recovery procedures.
  • Use Case: You need to migrate your Terraform state from a local file to an AWS S3 bucket with versioning and locking enabled. This Skill provides the exact configuration and commands to achieve this safely.

Quick Start

Use the terraform-state-manager skill to migrate your current Terraform state to an AWS S3 backend.

Frequently Asked Questions about terraform-state-manager

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

FAQPage Schema
How do I migrate Terraform state to an AWS S3 remote backend?

Terraform state migration to a remote backend requires configuring the backend block for AWS S3 with locking enabled, then running terraform init to safely copy the local state. This enables secure team collaboration and data recovery.

What is the best way to manage Terraform state across multiple environments?

The best way to manage multiple environments is using Terraform workspaces. Workspace management allows you to isolate state files for different environments while maintaining a single configuration base, ensuring robust infrastructure as code workflows.

How does Terraform state locking work and why is it needed?

Terraform state locking prevents concurrent operations from corrupting the state file by locking it during writes. Configuring remote backends with locking enabled is a critical security and data integrity best practice for team collaboration.

Can I import existing cloud resources into Terraform state?

Yes, you can import existing cloud resources into Terraform state using the terraform import command. State operations allow you to list, show, move, and import resources so your state file accurately reflects real-world cloud infrastructure.

Does this guidance cover remote backend configuration for Azure and Google Cloud?

Yes, this covers remote backend configuration for Azure Blob Storage and Google Cloud Storage, alongside AWS S3. You receive expert guidance on configuring secure state storage and locking across all three major cloud platforms.

How do I detect and recover from Terraform state drift?

Detecting and recovering from Terraform state drift involves running terraform plan to identify configuration differences, then using state operations to reconcile the state file. Security best practices include enabling state file versioning for reliable recovery.