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.
Install with pip (recommended)
InvenTag is published on the Python Package Index as
inventag-aws. A virtual
environment is the tidy way to install it, but InvenTag does not need one. It
is an ordinary Python package. A virtual environment keeps its dependencies
(boto3, openpyxl and others) away from your other Python tools, and many
current systems (Debian, Ubuntu, Homebrew Python) refuse pip install into the
system Python with an "externally-managed-environment" error. The two options
that work on those systems are a virtual environment, or pipx:
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.1.3. Prefer to keep it out of your
project environments? pipx install inventag-aws installs it into its own
hidden environment and puts the inventag command on your PATH, so you never
activate anything. If your system allows it, a plain pip install inventag-aws
into your user or system Python works too.
Install from source
Use this if you want the newest unreleased code or you plan to change InvenTag.
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.1.3. The
releases page lists
every release.
Connect your AWS credentials
InvenTag uses the standard AWS credential chain, so any of these work:
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
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):
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
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 see | What to do |
|---|---|
Error: No suitable Python interpreter found. or InvenTag requires Python 3.11 or later | Install Python 3.11 or later and check that python3 --version works. |
inventag: command not found | Activate the virtual environment where you ran pip install inventag-aws, or run python -m pip show inventag-aws to check it is installed. |
ModuleNotFoundError | Activate 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. |