Install
openclaw skills install @kingaiwork/terraform-state-migratorMigrate Terraform state between backends, rename resources, and fix drift without manual editing. / 在多个后端间迁移Terraform状态,重命名资源并自动修复漂移。
openclaw skills install @kingaiwork/terraform-state-migratorMigrate Terraform state between backends, rename resources, and fix drift without manual editing. / 在多个后端间迁移Terraform状态,重命名资源并自动修复漂移。
🦁 由 KingAI.Work 出品 — 智能进化|vip@kingai.work
Manual Terraform State Migrator / Terraform状态迁移器 takes too long. This tool automates it.
• Instantly migrate Terraform state across S3, GCS, AzureRM, and local backends with zero downtime / 跨S3、GCS、AzureRM及本地后端即时迁移Terraform状态,业务中断秒级恢复,操作如丝般顺滑 • Rename resources and modules with intelligent reference rewriting across your entire state tree / 智能重命名资源与模块,自动更新整个状态树中的引用关系,告别手动改错 • Detect and fix state drift automatically, comparing live infra against remote state in one command / 一键对比真实基础设施与远程状态,自动发现并修复漂移,确保配置即现实 • Dry-run mode shows exact changes before they happen, with rollback support for safety / 预览模式精确展示每一步变更,支持一键回滚,让迁移零风险(Pro高级功能) • Batch rename entire resource groups with pattern matching and conflict detection / 批量重命名资源组,支持正则匹配与冲突预检,大幅提升大规模重构效率(Pro专属) • Export state diffs as human-readable reports for audit compliance / 将状态差异导出为可审计的人类可读报告,满足合规要求
terraform-state-migrator migrate --from s3://prod-bucket/terraform.tfstate --to gcs://prod-state-bucket/v1.tfstate Migrates Terraform state from S3 to GCS while validating backend connectivity and state integrity. / 将Terraform状态从AWS S3安全迁移至GCS,自动验证后端连通性与状态完整性。
• Cloud provider migration: You're moving workloads from AWS to GCP. Use the tool to migrate all Terraform states to the new GCS backend without reprovisioning infrastructure. / 云供应商迁移:将工作负载从AWS迁至GCP时,使用此工具将所有Terraform状态迁移至新GCS后端,无需重新部署基础设施。 • Resource standardization: Your team has inconsistent naming across environments. Batch rename all resources to follow new conventions, fixing all references in one pass. / 资源标准化:团队各环境命名混乱,批量重命名所有资源并统一规范,一次性修复所有引用,消除人为错误。 • Disaster recovery: After an accidental state deletion, quickly restore from backup and validate against live infrastructure to detect and fix any drift. / 灾难恢复:意外删除状态后,从备份快速恢复并与实际基础设施对比验证,自动发现并修复漂移。
| Free | Pro | |
|---|---|---|
| Core / 核心 | ✅ | ✅ |
| Bulk / 批量 | — | ✅ |
| AI / AI 增强 | — | ✅ |
| Support / 支持 | Community | Priority |
Published by King AI — kingai.work | vip@kingai.work