Skip to main content

Know Everything About Your AWS Environment

Project description

AWS Inventory Manager

Know Everything About Your AWS Environment

CI Coverage PyPI version Python 3.11+ License: MIT

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
"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. Capture current state
awsinv snapshot create my-baseline --region us-east-1

# 2. View what was captured
awsinv snapshot report

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

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

# 5. 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

  • 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 (guide)
  • Guardrails -- Policy-based compliance checking, AI auto-fix, CI/CD ready (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 troylar.github.io/aws-inventory-manager.

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
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

See Common Workflows for more examples.


Command Quick Reference

Command Group Description
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 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

2400+ 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

Project details


Release history Release notifications | RSS feed

This version

2.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_inventory_manager-2.0.0.tar.gz (420.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_inventory_manager-2.0.0-py3-none-any.whl (543.5 kB view details)

Uploaded Python 3

File details

Details for the file aws_inventory_manager-2.0.0.tar.gz.

File metadata

  • Download URL: aws_inventory_manager-2.0.0.tar.gz
  • Upload date:
  • Size: 420.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for aws_inventory_manager-2.0.0.tar.gz
Algorithm Hash digest
SHA256 e231f3d9e83dbb9b7a39c19839984a7ca3f609952cf26e662b913c6117fe036a
MD5 07d880822648dba3f9f50b6e80fa4d4f
BLAKE2b-256 b2115f3306e02d65ee827c8770ffdba48a54fce84a8868971b097bc8e57d30c7

See more details on using hashes here.

File details

Details for the file aws_inventory_manager-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_inventory_manager-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 359f54cbb16fdea70bbdc6f9b74a0420175763dd14e703f6e72867731b81b32b
MD5 9169406902008519f7ada66362483ef3
BLAKE2b-256 7189e8d0ed2e8a6710be234901ac7aa4132fc37d063dc0116d7f46c6de713e67

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page