🔄 Terraform State Migrator / Terraform状态迁移器
Migrate Terraform state between backends, rename resources, and fix drift without manual editing. / 在多个后端间迁移Terraform状态,重命名资源并自动修复漂移。
🦁 由 KingAI.Work 出品 — 智能进化|vip@kingai.work
The Problem / 痛点
Manual Terraform State Migrator / Terraform状态迁移器 takes too long. This tool automates it.
The Solution / 方案
• 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 / 将状态差异导出为可审计的人类可读报告,满足合规要求
Get Started / 上手
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,自动验证后端连通性与状态完整性。
Real Scenarios / 实际场景
• 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. / 灾难恢复:意外删除状态后,从备份快速恢复并与实际基础设施对比验证,自动发现并修复漂移。
Plans / 定价
| Free | Pro | |
|---|---|---|
| Core / 核心 | ✅ | ✅ |
| Bulk / 批量 | — | ✅ |
| AI / AI 增强 | — | ✅ |
| Support / 支持 | Community | Priority |
• Unlock batch operations for renaming hundreds of resources in seconds. / 解锁批量操作能力,数秒内完成数百个资源的重命名任务。 • Get priority support with SLA-backed migration assistance during critical maintenance windows. / 享受优先技术支持,关键维护窗口期提供SLA保障的迁移协助。 • Access advanced conflict resolution algorithms that handle complex state dependencies automatically. / 使用高级冲突解决算法,自动处理复杂状态依赖关系,彻底告别手动调试。\n\n
About the Publisher
Published by King AI — kingai.work | vip@kingai.work
