Metadata-Version: 2.4
Name: iac-drift-detector
Version: 1.0.0
Summary: Detect drift between IaC definitions and actual cloud resource state
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.0.0
Requires-Dist: rich>=13.0.0
Requires-Dist: pyyaml>=6.0
Dynamic: license-file

# iac-drift-detector

**Detect drift between IaC definitions and actual cloud resource state.**

Compare Terraform/CloudFormation/Pulumi state against live cloud resources to identify missing resources, unmanaged infrastructure, property drift, and tag mismatches.

## Features

- **Multi-Provider** — Terraform, CloudFormation, Pulumi, Bicep, ARM detection
- **Drift Detection** — Missing/Unmanaged/Modified/Tag drift with severity scoring
- **Drift Score & Grade** — A-F grading system (0-100 score)
- **Security-Aware** — Critical severity for security groups and IAM changes
- **10 Detection Rules** — IAC-001 to IAC-010

## Installation

```bash
pip install -e .
```

## Quick Start

```bash
iac-drift-detector demo
iac-drift-detector scan demo-drift/iac-state.yaml demo-drift/cloud-state.yaml
iac-drift-detector scan demo-drift/iac-state.yaml demo-drift/cloud-state.yaml --fail-on critical
iac-drift-detector rules
```

## Testing

```bash
python -m pytest tests/ -v
```

## License

MIT
