Real-time detection and reporting of infrastructure drift between Terraform state and live cloud. / 实时检测 Terraform 状态与云环境之间的基础设施漂移并生成报告。
---
name: terraform-drift-detector
description: "Real-time detection and reporting of infrastructure drift between Terraform state and live cloud. / 实时检测 Terraform 状态与云环境之间的基础设施漂移并生成报告。"
version: 1.0.0
topics: [terraform,infrastructure-as-code,cloud,compliance,漂移检测,基础设施,合规]
metadata:
openclaw:
requires:
bins:
- bash
- curl
emoji: "🌪️"
homepage: https://kingai.work/
install: []
---
# 🌪️ Terraform Drift Detector / Terraform 配置漂移检测
> Real-time detection and reporting of infrastructure drift between Terraform state and live cloud. / 实时检测 Terraform 状态与云环境之间的基础设施漂移并生成报告。
> 🦁 **由 KingAI.Work 出品** — 智能进化|vip@kingai.work
---
## The Problem / 痛点
Manual Terraform Drift Detector / Terraform 配置漂移检测 takes too long. This tool automates it.
## The Solution / 方案
• Scans real cloud resources against Terraform state files in minutes / 数分钟内扫描实际云资源与Terraform状态文件,快速锁定不一致资源
• Detects unauthorized manual changes, missing resources, and config drift / 自动识别未授权的手动变更、缺失资源及配置偏移,保障基础设施一致性
• Supports AWS, Azure, and GCP with multi-account cross-region scanning / 支持AWS、Azure、GCP多云平台,跨账户跨区域扫描无死角
• Generates actionable drift reports with diff output and rollback suggestions / 生成可操作的漂移报告,包含差异对比和回滚建议,降低修复成本
• Pro: Automated remediation plans that apply fixes directly to Terraform state / 专业版:自动修复方案,直接更新Terraform状态,一键消除偏差
• Pro: Scheduled drift detection with Slack/Teams alerts for continuous compliance / 专业版:定时漂移检测并发送Slack/Teams告警,确保持续合规
## Get Started / 上手
```bash
bash terraform-drift-detector scan --provider aws --region us-east-1 Scans all Terraform-managed resources in us-east-1 against live cloud state and lists any drift found with details. / 扫描us-east-1区域所有Terraform管理资源,与实际云状态对比并列出漂移详情。
```
## Real Scenarios / 实际场景
• A DevOps engineer finds an EC2 instance was manually resized by a teammate, breaking autoscaling rules / 运维工程师发现团队成员手动修改了EC2实例规格,导致自动扩缩容规则失效;使用检测器秒级定位漂移并生成修复计划
• A security team suspects unauthorized firewall rule changes in production / 安全团队怀疑生产环境防火墙规则被篡改;工具扫描所有安全组,识别与Terraform不一致的规则并报告风险
• A cloud architect needs to prove Terraform state accuracy before a major migration / 云架构师需要在大规模迁移前确认Terraform状态准确性;全量扫描后快速生成合规报告,消除迁移风险
## Plans / 定价
| | Free | Pro |
|--|:----:|:---:|
| Core / 核心 | ✅ | ✅ |
| Bulk / 批量 | — | ✅ |
| AI / AI 增强 | — | ✅ |
| Support / 支持 | Community | Priority |
• Pro unlocks automated drift remediation reducing manual fix time by 80% / 专业版开启自动修复功能,将手动修复时间缩短80%
• Get real-time drift alerts integrated with your team's chat tools (Slack/Teams) / 实时漂移告警与团队聊天工具集成,第一时间响应异常变更
• Advanced multi-environment drift dashboards for enterprise compliance auditing / 多环境漂移高级仪表盘,满足企业级合规审计需求\n\n
---
**KingAI.Work** — 智能进化|vip@kingai.work
don't have the plugin yet? install it then click "run inline in claude" again.