infrastructure-drift-detector

Detect infrastructure drift from desired state

View on GitHub
Author Jeremy Longshore
Namespace @jeremylongshore/claude-code-plugins-plus
Category devops
Version 1.0.0
Stars 1,193
Downloads 2
self.md verified
Table of content

Detect infrastructure drift from desired state

Installation

npx claude-plugins install @jeremylongshore/claude-code-plugins-plus/infrastructure-drift-detector

Contents

Folders: commands, skills

Files: LICENSE, README.md

Documentation

Detect infrastructure drift from desired state

Installation

/plugin install infrastructure-drift-detector@claude-code-plugins-plus

Usage

/drift-detect

Features

License

MIT

Included Skills

This plugin includes 1 skill definition:

detecting-infrastructure-drift

|

View skill definition

Infrastructure Drift Detector

This skill provides automated assistance for infrastructure drift detector tasks.

Prerequisites

Before using this skill, ensure:

Instructions

  1. Identify IaC Tool: Determine if using Terraform, CloudFormation, Pulumi, or ARM
  2. Fetch Current State: Retrieve actual infrastructure state from cloud provider
  3. Load Desired State: Read IaC configuration from {baseDir}/terraform or equivalent
  4. Compare States: Execute drift detection command for the IaC platform
  5. Analyze Differences: Identify added, modified, or removed resources
  6. Generate Report: Create detailed report of drift with affected resources
  7. Suggest Remediation: Provide commands to resolve drift (apply or import)
  8. Document Findings: Save drift report to {baseDir}/drift-reports/

Output

Generates drift detection reports:

Terraform Drift Report:

Drift Detection Report - 2025-12-10 10:30:00
==============================================

Resources with Drift: 3

1. aws_instance.web_server
   Status: Modified
   Drift: instance_type changed from "t3.micro" to "t3.small"
   Action: Update IaC to match or revert instance type

2. aws_s3_bucket.asse

...(truncated)

</details>

## Source

[View on GitHub](https://github.com/jeremylongshore/claude-code-plugins-plus-skills)