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

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

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.1
File Size Uploaded Provenance Actions
inventag_aws-1.0.1.tar.gz 342.1 kB With provenance Details for inventag_aws-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 713.9 kB

Release files / inventag_aws-1.0.1.tar.gz

Download URL inventag_aws-1.0.1.tar.gz
Size 342.1 kB
Tags Source
SHA-256 checksum
How to use checksums
29b8dcc952562ec61133116ef315573c206a8921b82fd1aab13b68d9f3169db1
BLAKE2b-256 checksum
How to use checksums
f1e44c2ff229ea50e64734b6ecc4586514f0f47dd8298243d8dc45845a59584e
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.1-py3-none-any.whl

Download URL inventag_aws-1.0.1-py3-none-any.whl
Size 371.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
170b6dea2147016ed7d366119aad15f8149f460cb20925037351e2333215a804
BLAKE2b-256 checksum
How to use checksums
83835409e684bd4884b36312659bced858ba5d869d9a56caf7b9c2619ac32ea8
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.1

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