terraform-refactoring
OfficialRefactor Terraform safely without downtime.
Software Engineering#refactor#terraform#state-management#infrastructure-as-code#moved-block#terraform-plan#module-refactor
AuthorLuscii
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps teams safely refactor Terraform configurations by introducing moved blocks to rename resources, reorganize module structure, and migrate state without destroying infrastructure, ensuring upgrades are non-disruptive.
Core Features & Use Cases
- Safely apply moved blocks to rename resources, move modules, and adjust addresses without destroying resources.
- Support common refactor patterns (rename resources, move resources into modules, split modules, and convert counts to for_each) with clear, irreversible moves through state updates.
- Use case: upgrading a large Terraform project where resources must be renamed or relocated to new module paths while preserving existing infrastructure.
Quick Start
Use this skill to begin refactoring Terraform modules with moved blocks. Add moved blocks to your Terraform code, then run terraform plan to verify the changes are only address moves and not destructive changes.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: terraform-refactoring Download link: https://github.com/Luscii/terraform-fluentbit-luscii-presets/archive/main.zip#terraform-refactoring Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.