Skip to main content

AWS Inventory Manager

Know Everything About Your AWS Environment

CI Coverage PyPI version Python 3.11+ License: MIT Docs

Collections | Inventory Snapshots | Configuration Drift | Security Scanning | Cost Analysis | Resource Cleanup | IaC Generation

Documentation | Quick Start | Features | Contributing


What It Does

One CLI that inventories 27 AWS services and 80+ resource types, then lets you track drift, enforce compliance, generate Terraform and CDK, scan for security issues, manage Lambda code, query resources with SQL, and clean up what shouldn't be there. 60+ commands. Zero agents running in your account.

Note: "Snapshot" in this tool means an inventory snapshot (a catalog of what exists), not an AWS EBS or RDS snapshot. No AWS snapshots are created.

Problem Solution
"What's actually running in our account?" Snapshot 80+ resource types across all regions in one command
"What changed since last week?" Field-level configuration drift detection between snapshots
"Are we following security best practices?" 12+ CIS-aligned checks with severity filtering
"Someone spun up a bunch of test resources" Delete everything created after a baseline snapshot
"I need Terraform for existing resources" Generate Terraform or CDK from live inventory with guardrails
"What's in that Lambda function?" Extract, view, and diff deployment packages across snapshots
"Are our guardrails being followed?" YAML-based compliance policies with BLOCK/WARN/AUTO-FIX
"Does this account follow our reference architecture?" Pattern comparison with scoring, gap analysis, and compliance
"I need a resource explorer for the team" Launch a web UI with awsinv serve

Quick Start

pip install aws-inventory-manager

Or with pipx: pipx install aws-inventory-manager

# 1. Organize snapshots into a collection
awsinv collection create prod-baseline --description "Production account"

# 2. Capture current state into the collection
awsinv snapshot create my-baseline --collection prod-baseline --region us-east-1

# 3. View what was captured
awsinv snapshot report

# 4. Track changes
awsinv delta --snapshot my-baseline --show-diff

# 5. Find security issues
awsinv security scan --severity HIGH

# 6. Clean up (always preview first!)
awsinv cleanup preview my-baseline
awsinv cleanup execute my-baseline --yes

See the full Getting Started tutorial for a complete walkthrough.


Features

  • Collections -- Named containers for organizing snapshots by account, environment, or team (guide)
  • Inventory Snapshots -- 27 AWS services, 80+ resource types, multi-region, Lambda code collection, SQLite storage (guide)
  • Change Tracking -- Field-level drift detection with before/after diff (guide)
  • Security Scanning -- 12+ CIS-aligned checks across severity levels (guide)
  • Cost Analysis -- Per-inventory cost tracking, date ranges, service breakdown (guide)
  • Resource Cleanup -- Baseline cleanup, purge mode, protection rules, 43 deletable types (guide)
  • AWS Config Integration -- Auto-detected, up to 5x faster collection (guide)
  • Query & Analysis -- SQL queries, resource search, cross-snapshot history (guide)
  • Creator Tracking -- CloudTrail-based resource provenance (guide)
  • IaC Generation -- Terraform, CDK TypeScript, CDK Python via AI (Bedrock or OpenAI) (guide)
  • Guardrails -- Policy-based compliance checking, AI auto-fix, CI/CD ready (guide)
  • Infrastructure Patterns -- Reusable architecture blueprints, snapshot comparison, compliance reporting (guide)
  • Web UI -- Resource Explorer with advanced filtering and export (guide)
  • Lambda Code -- List, extract, view, diff, and fetch Lambda deployment code (guide)

Documentation

Full documentation is available at aws-inventory-manager.readthedocs.io.

Section Description
Getting Started Installation, first snapshot, common workflows
Configuration Environment variables, AWS Config, data storage, multi-account
Guides How-to guides for every feature
Guardrails Policy-based compliance checking
Patterns Infrastructure pattern library and comparison
Reference CLI reference, IAM permissions, supported resources, database schema
Development Contributing, testing, architecture
FAQ Troubleshooting and frequently asked questions

Common Workflows

# Development environment reset
awsinv snapshot create morning-baseline --region us-east-1
# ... work all day ...
awsinv cleanup execute morning-baseline --yes

# Pre/post deployment comparison
awsinv snapshot create pre-deploy --region us-east-1,us-west-2
# ... deploy ...
awsinv delta --snapshot pre-deploy --show-diff

# Sandbox account cleanup
awsinv cleanup purge --protect-tag "baseline=true" --preview
awsinv cleanup purge --protect-tag "baseline=true" --yes

# Pattern-based architecture validation
awsinv patterns add three-tier-web-app.yaml
awsinv patterns compare --snapshot prod-account
awsinv patterns compliance --snapshot prod --snapshot staging --snapshot dev

See Common Workflows for more examples.


Command Quick Reference

Command Group Description
awsinv collection Create, list, show, delete snapshot collections
awsinv snapshot Create, list, export, enrich snapshots
awsinv delta Track changes since a baseline
awsinv security Run CIS-aligned security scans
awsinv cost Cost analysis with date ranges
awsinv cleanup Delete resources (preview/execute/purge)
awsinv lambda Lambda code: list, extract, show, diff, fetch
awsinv query SQL queries and resource search
awsinv generate Generate Terraform/CDK from snapshots
awsinv guardrails Compliance checking and policy management
awsinv patterns Infrastructure pattern library and comparison
awsinv serve Launch web-based Resource Explorer

See the full CLI Reference for all options.


Supported Resources

27 AWS services, 80+ resource types. 43 support deletion via cleanup.

See Supported Resource Types for the full list.


Development

git clone https://github.com/troylar/aws-inventory-manager.git
cd aws-inventory-manager
pip install -e ".[dev]"

invoke test              # All tests with coverage
invoke test-unit         # Unit tests only (faster)
invoke quality           # Lint + typecheck
invoke quality --fix     # Auto-fix issues
invoke build             # Build distributable package

3300+ tests, 61% overall coverage.


Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Run tests: invoke test
  4. Run quality checks: invoke quality
  5. Submit a pull request

See CONTRIBUTING.md for detailed guidelines.

License

MIT License - see LICENSE

Support


Built for AWS practitioners who need visibility and control

Star on GitHub

Metadata

Release files for aws-inventory-manager 2.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-inventory-manager 2.6.0
File Size Uploaded
aws_inventory_manager-2.6.0.tar.gz 446.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aws-inventory-manager 2.6.0
File Interpreter ABI Platform
aws_inventory_manager-2.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / aws_inventory_manager-2.6.0.tar.gz

Download URL aws_inventory_manager-2.6.0.tar.gz
Size 446.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ddfd2d01b1aca5f1dac3511ac753642dca130beaf0ac84800779a93715ddcb4f
BLAKE2b-256 checksum
How to use checksums
173d08ac15fac66095f96803a9586a7a23d00043659dea9b5cf8bff89b1931e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 11, 2026.

Transparency log

Release files / aws_inventory_manager-2.6.0-py3-none-any.whl

Download URL aws_inventory_manager-2.6.0-py3-none-any.whl
Size 576.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a9d79bab6b6b20f90d2d5634da4ff2f7fac42a08640cd0381fa605fd48b167e
BLAKE2b-256 checksum
How to use checksums
c06ec598aad96fc39ec547b44b42dfa7aea07d160efed66b84e6806084b3c70d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.6.0 This release

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.4.0

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.31.1

2 release files

0.31.0

2 release files

0.30.0

2 release files

0.29.0

2 release files

0.28.1

2 release files

0.28.0

2 release files

0.26.1

2 release files

0.26.0

2 release files

0.25.0

2 release files

0.24.4

2 release files

0.24.3

2 release files

0.24.2

2 release files

0.24.1

2 release files

0.24.0

2 release files

0.23.0

2 release files

0.22.1

2 release files

0.22.0

2 release files

0.21.2

2 release files

0.21.1

2 release files

0.21.0

2 release files

0.20.0

2 release files

0.19.0

2 release files

0.18.1

2 release files

0.18.0

2 release files

0.17.15

1 release file

0.17.9

2 release files

0.17.7

2 release files

0.17.6

2 release files

0.17.4

2 release files

0.17.3

2 release files

0.17.2

2 release files

0.17.1

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.13.2

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.3

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page