Skip to main content

InvenTag

Find out what is running in your AWS accounts, check it is tagged properly, and hand over an Excel or Word bill of materials.

Automated Release Documentation PyPI Python 3.11+ License: MIT

Install: pip install inventag-aws (PyPI)
Docs: https://habhabhabs.github.io/inventag-aws/

Quick start

Install from PyPI with pip:

python3 -m venv .venv && source .venv/bin/activate
pip install inventag-aws

inventag --validate-credentials       # uses your current AWS credentials
inventag --create-excel --verbose     # -> bom_output/multi_account_bom_<timestamp>.xlsx

A virtual environment is optional. pipx install inventag-aws gives you the same inventag command without activating anything, and plain pip install inventag-aws works wherever your Python allows it (newer Linux and Homebrew Pythons refuse system-wide installs). To upgrade later, run pip install --upgrade inventag-aws. To work on the code or run the newest unreleased version, install from source instead:

git clone https://github.com/habhabhabs/inventag-aws.git
cd inventag-aws
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
inventag --validate-credentials

Python 3.11 or later is required. Use a read-only IAM identity. By default, discovery made two Cost Explorer requests for each account in our offline test, and AWS bills each request. Add --no-billing-validation to make no Cost Explorer request. Details: Installation.

What it does

  • Discovery across accounts and regions through the Resource Groups Tagging API, per-service List*/Describe*/Get* calls (24 services have their own discovery code) and Cost Explorer billing data.
  • Bill of materials as an Excel workbook (--create-excel) and/or Word document (--create-word), with your own tag columns (--tag-mappings) and service descriptions (--service-descriptions).
  • Templates (--template, inventag templates list): built-in and your own report layouts, tag policies and run settings.
  • Layout files (--word-template, --excel-template): a YAML or JSON file selects the title, the sections or sheets, the columns, and the header and footer text.
  • Several accounts from a file (--accounts-file), interactively (--accounts-prompt) or through an assumed role (--cross-account-role), processed in parallel.
  • Change tracking: each run saves a snapshot in bom_output/state/; from the second run on, InvenTag writes a change report (changelog_<timestamp>.md) of what was added, removed or changed.
  • Upload to Amazon S3 (--s3-bucket) with server-side encryption.
  • Read-only guard: the CLI blocks each AWS API call that is not a read operation. --audit-output audit.json writes a list of the calls.
  • Tag-policy checks (required tags, allowed values) with a tag-policy template, for example --template finops-cost-allocation. Results go to a Tag Compliance sheet, a Word section and a JSON file, and a config template can fail a CI job (exit code 3).

Limits

InvenTag has never been tested against a real AWS account; every test uses mocked AWS. Global services (S3, IAM, CloudFront, Route 53) are scanned only if us-east-1 is among the regions. Tags on Lambda, RDS, DynamoDB, SQS and SNS resources are not matched to the resource in our tests. One failed account does not change the exit code. Read Current status and known limitations.

Not implemented

These flags stop the CLI with an error message and exit code 2: --create-google-docs, --per-account-reports, --compliance-standard, --risk-threshold and --disable-production-safety. InvenTag does not certify compliance with SOC 2 or other standards. For the full list, see Current status and known limitations.

More examples

# Several accounts, Excel + Word, your own tag columns
inventag --accounts-file accounts.json \
  --create-excel --create-word \
  --tag-mappings config/defaults/mappings/tag_to_column_mappings_example.yaml \
  --service-descriptions config/defaults/services/service_descriptions_example.yaml

# Assume a read-only role (full role ARN)
inventag --cross-account-role arn:aws:iam::123456789012:role/InvenTagReadOnly \
  --create-excel

# Assume the same role name in each account of accounts.json
inventag --accounts-file accounts.json --cross-account-role InvenTagReadOnly \
  --create-excel

# Upload the reports to S3 (server-side encrypted)
inventag --create-excel --s3-bucket my-reports-bucket

# Faster runs: fewer regions, more accounts in parallel
inventag --accounts-file accounts.json --create-excel \
  --account-regions us-east-1,ap-southeast-1 --max-concurrent-accounts 8

Every flag: Command-line reference.

Documentation

Section Link
Quick start docs/getting-started/quick-start.md
Current status and known limitations docs/getting-started/status.md
Choose what to scan docs/guides/run-a-scan.md
Command-line reference docs/reference/cli.md
Configuration files docs/reference/configuration-files.md
Templates docs/templates/index.md
Read-only access and permissions docs/guides/read-only-access.md
Architecture docs/development/architecture.md
Contributing docs/development/CONTRIBUTING.md

The same Markdown files are published as the documentation site (Docusaurus, in website/). Brand assets (logo, favicon, social card) and the script that regenerates them live in website/brand/.

Project layout

inventag-aws/
├── inventag_cli.py              # CLI entry point (the `inventag` command runs it)
├── inventag/                    # Python package: cli, core, discovery, reporting, templating, state, security
├── scripts/legacy/              # standalone scripts (inventory, tag compliance, BOM converter)
├── config/                      # example configs, IAM policy, JSON schemas
├── examples/                    # account files and CI examples
├── docs/                        # documentation (Markdown)
├── website/                     # Docusaurus site, brand assets
└── tests/

Support

License

MIT. See LICENSE.


AWS is a trademark of Amazon.com, Inc. or its affiliates. InvenTag is an independent tool and is not affiliated with, endorsed by, or sponsored by Amazon Web Services, Inc.

Metadata

Release files for inventag-aws 1.0.2

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

Source distribution (sdist)

Source distribution for inventag-aws 1.0.2
File Size Uploaded Provenance Actions
inventag_aws-1.0.2.tar.gz 342.4 kB With provenance Details for inventag_aws-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inventag-aws 1.0.2
File Interpreter ABI Platform Actions
inventag_aws-1.0.2-py3-none-any.whl Python 3 none any Details for inventag_aws-1.0.2-py3-none-any.whl

Total release size: 714.3 kB

Release files / inventag_aws-1.0.2.tar.gz

Download URL inventag_aws-1.0.2.tar.gz
Size 342.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7f2f5bc9c91da903ed993153aa642cf067c0a8269c25fac54f6b936c2f4a07ff
BLAKE2b-256 checksum
How to use checksums
d6b12caf3c6e9fe56da4c247be3322a0063ba06902628c4f7bd70838a6b6eeaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

Release files / inventag_aws-1.0.2-py3-none-any.whl

Download URL inventag_aws-1.0.2-py3-none-any.whl
Size 371.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91b2862ba059541e5cae727b2692e89c1695e60ee6e86a1c1ce5badd46ff9ef4
BLAKE2b-256 checksum
How to use checksums
3695054ddb50874e039dde5a40199b24e65e0e7d2988e22e8bbefee6f3a2d9e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

Security for inventag-aws 1.0.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for inventag_aws-1.0.2.tar.gz

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 Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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