Skip to main content
Version: v1.0.0

Install InvenTag

Who this is for: anyone setting up InvenTag on a laptop, a server or a CI runner.

What you can do after reading: run inventag --help and confirm that InvenTag can reach your AWS account.

What you need​

  • Python 3.11 or later. Python 3.10 stopped getting security fixes in October 2026. Check your version with python3 --version.
  • pip, which comes with Python. (Git is only needed to install from source.)
  • AWS credentials for a read-only identity. The AWS Command Line Interface (AWS CLI) is optional, but it is the easiest way to set them up.

InvenTag is published on the Python Package Index as inventag-aws. Install it with pip into a virtual environment:

Terminal
python3 -m venv .venv
source .venv/bin/activate # Windows PowerShell: .venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install inventag-aws
inventag --help

This gives you an inventag command. Everything in these docs that shows inventag works the same with inventag. The report templates are included in the package.

To upgrade, run pip install --upgrade inventag-aws. To install a specific release, run pip install inventag-aws==1.0.0. Prefer to keep it out of your project environments? pipx install inventag-aws installs it on its own.

Install from source​

Use this if you want the newest unreleased code or you plan to change InvenTag.

Terminal
git clone https://github.com/habhabhabs/inventag-aws.git
cd inventag-aws
python3 -m venv .venv
source .venv/bin/activate # Windows PowerShell: .venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install -r requirements.txt
inventag --help # Windows: inventag --help

Run pip install -e . in the cloned folder to get the inventag command from your source checkout. You can also run python inventag_cli.py --help directly.

To use a fixed release from source instead of the newest code, check out its tag, for example git checkout v1.0.0. The releases page lists every release.

Connect your AWS credentials​

InvenTag uses the standard AWS credential chain, so any of these work:

Terminal
aws sso login --profile my-readonly # IAM Identity Center (recommended)
export AWS_PROFILE=my-readonly

aws configure # long-lived access keys (avoid if you can)

Prefer short-lived credentials, such as IAM Identity Center or an assumed role, over access keys stored on disk.

Check that it works​

Terminal
inventag --validate-credentials --verbose

Exit code 0 means InvenTag could sign in. With --verbose you also see the steps. Sample output from an offline run against mocked AWS (sample data):

Terminal
inventag - WARNING - - No account specification method provided. Using default AWS credentials.
inventag.cli.main - INFO - 🔐 Validating AWS credentials...
inventag.cli.main - INFO - ✅ AWS credentials are valid!
inventag.cli.main - INFO - Using default AWS credentials
inventag.cli.main - INFO - Validating credentials for all accounts...
inventag.cli.main - INFO - Validating credentials for account: AWS Account 123456789012 (moto)
inventag.core.credential_manager.CredentialManager - INFO - Validating credentials for account 123456789012
inventag.core.credential_manager.CredentialManager - INFO - Successfully validated credentials for account 123456789012
inventag.cli.main - INFO - ✓ All account credentials are valid
$ echo $?
0

If the credentials don't work, InvenTag says why and suggests a fix. See Fix common problems.

Give InvenTag read-only permissions​

Before your first real scan, give the identity a read-only policy: Set up read-only access.

Install for development​

Terminal
pip install -r requirements.txt -r requirements-dev.txt
python -m pytest -q

The contributing guide explains the full test suite.

Fix install problems​

What you seeWhat to do
Error: No suitable Python interpreter found. or InvenTag requires Python 3.11 or laterInstall Python 3.11 or later and check that python3 --version works.
inventag: command not foundActivate the virtual environment where you ran pip install inventag-aws, or run python -m pip show inventag-aws to check it is installed.
ModuleNotFoundErrorActivate the virtual environment and run pip install -r requirements.txt again.
No AWS credentials found!Run aws sso login or aws configure, or set AWS_PROFILE.

Next step​

Generate your first report