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: pipx install inventag-aws (PyPI)
Docs: https://habhabhabs.github.io/inventag-aws/

Quick start

Install with pipx. It puts the inventag command on your PATH, and you activate nothing:

pipx install inventag-aws
inventag selftest                     # checks this copy, offline

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

Other ways to install: a standalone archive (Linux x86_64 and arm64, macOS arm64), a .deb or an .rpm package (no Python needed), pip in a virtual environment, or Homebrew (the tap is not published yet). The Linux builds need glibc 2.34 or later. There is no executable for Intel Macs or for Windows. The Installation page has a table to choose, with the systems, upgrade and uninstall for each. To work on the code or run the newest unreleased version, install from source:

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

Python 3.11 or later is required for pipx, pip and source installs. The packaged builds need no Python. Use a read-only IAM identity. By default, discovery makes one Cost Explorer request for each account, 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 (46 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. --resume scans only the accounts that did not finish in an earlier run.
  • 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.
  • Google Sheets and Docs (--create-google-sheets, --create-google-docs; add the Google add-on with pip install "inventag-aws[google]"): the same Excel and Word reports as Google files, private unless you share them. Not verified against real Google: the Google files and who can open them.
  • Global services (IAM, S3 bucket list, CloudFront, Route 53, WAF for CloudFront) are read once per account from us-east-1 (cn-north-1 in China, us-gov-west-1 in GovCloud), whichever regions you choose.
  • 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.
  • Secret values masked: values of fields that often hold secrets, such as Lambda environment variables, become ***REDACTED*** in reports, snapshots and logs.
  • 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; the tests use mocked AWS or mocked clients. Google Sheets and Docs output has been tested only against mocked Google clients. One failed account does not change the exit code unless you pass --fail-on-account-error (exit code 5), and the report and the run summary name it. Read Current status and known limitations.

Not implemented

These flags stop the CLI with an error message and exit code 2: --compliance-standard 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
# (the example files below are in a clone of the repository)
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
Google Sheets and Docs output docs/guides/google-sheets-and-docs.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.4.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.4.1
File Size Uploaded Provenance Actions
inventag_aws-1.4.1.tar.gz 494.4 kB With provenance Details for inventag_aws-1.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.0 MB

Release files / inventag_aws-1.4.1.tar.gz

Download URL inventag_aws-1.4.1.tar.gz
Size 494.4 kB
Tags Source
SHA-256 checksum
How to use checksums
463c56901b9862f20d582161d761cd4e3a9f4df2e3bad9f3562d7062eff488a5
BLAKE2b-256 checksum
How to use checksums
622216fd0f9cd6636a6212aef6657fbfd05441cd048a7741312f73428b68aa58
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 24, 2026.

Transparency log

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

Download URL inventag_aws-1.4.1-py3-none-any.whl
Size 533.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7855aa942e2b219c55fa08913a10d44977100a95b7c2c8409845fc90f49f1385
BLAKE2b-256 checksum
How to use checksums
ab89b31f2c3ddad266fcfca92ed742ce58afd41363a2e06872bcfdd4455a86f9
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 24, 2026.

Transparency log

Security for inventag-aws 1.4.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.4.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 24, 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