Skip to main content

Open-source CLI for AWSPythonMITv1.4.1 release notes (opens in new tab)

See what runs in your AWS accounts. Then hand over the report.

InvenTag scans one AWS account or many. It lists the resources it finds and the tags on each one. Then it writes an Excel or Word report, a bill of materials, that anyone can read.

A built-in guard lets through only read calls such as List, Describe and Get, and the report upload to your own S3 bucket when you ask for it. Run it with a read-only IAM role as well: see the permissions it needs.

Quick start
python3 -m venv .venv && source .venv/bin/activate
pip install inventag-aws
inventag --create-excel --verbose
Installs inventag-aws from PyPI with pip. Uses your current AWS credentials. Writes bom_output/multi_account_bom_<timestamp>.xlsx. Cost Explorer requests are billed by AWS.

The report it writes

Sample Summary sheet
ServiceResource CountPercentage
EC21435.0%
Lambda615.0%
RDS37.5%
S3922.5%
VPC820.0%
TOTAL40100.0%
  • Summary
  • EC2
  • Lambda
  • RDS
  • S3
  • VPC
Sample data The Summary sheet layout from --create-excel. Each service then gets its own sheet with one row per resource.

01 · What you get

One command. A report people can read.

Everything below is in the CLI today and has an offline test against mocked AWS. Where a feature is partly done or not verified, the docs say so.

--create-excel --create-word

Excel and Word reports

A summary sheet, then one sheet per service. Add a Word version for people who prefer documents. Files are saved in bom_output/.

AWS Resource Inventory - BOM Report

  • Executive Summary
    • Service Summary
  • Detailed Resource Inventory
    • EC2 Resources (14)
    • LAMBDA Resources (6)
    • RDS Resources (3)
    • S3 Resources (9)
    • VPC Resources (8)
  • Report Information
Sample data The outline of the Word document from --create-word. Each service section lists up to 50 resources by default.
See every report option
--audit-output

Read-only discovery

Finds resources through the Resource Groups Tagging API, each service's own list and describe calls, and Cost Explorer. A guard blocks any AWS call that could change something, and values that often hold secrets are masked. Add --audit-output to save a record of every call made.

  • resourcegroupstaggingapi.get_resources
  • ec2.describe_instances
  • s3.list_buckets
  • rds.describe_db_instances
  • lambda.list_functions
  • ce.get_cost_and_usage
Some of the boto3 calls in inventag/discovery.
Permissions and safety
--accounts-file

One account or many

Use AWS profiles, access keys or a role to assume. Accounts are scanned in parallel, four at a time by default.

{
  "accounts": [{
    "account_id": "123456789012",
    "account_name": "Production",
    "profile_name": "prod",
    "regions": ["us-east-1"]
  }]
}
Inventory every account in an organization
--tag-mappings

Your tags, your columns

Turn the tags your team agreed on into named columns in the default report. Add your own service descriptions too.

tag_mappings:
  - tag: "Owner"
    name: "Resource Owner"
  - tag: "CostCenter"
    name: "Cost Center"
Map tags to columns

What changed since last time

Each run saves a snapshot. The next run tells you what was added, removed or changed.

bom_output/
├─ multi_account_bom_<timestamp>.xlsx
└─ state/
   └─ state_<timestamp>.json
How snapshots work

Reusable templates

Start from eight built-in templates: report layouts, tag policies and run settings. List them with inventag templates list, copy one into your project and change only what you need.

  • Report layoutsstandard-bomexecutive-summary
  • Tag policiesfinops-cost-allocationsecurity-baseline
  • Run settingssingle-accountci-pipeline
Browse the templates
--enable-network-analysis

Network and security sheets

Optional sheets for VPCs and subnets, and for security groups with --enable-security-analysis.

Network analysis

Tag policy checks

Check for required tags and allowed values with a tag-policy template. Results go to a sheet, a Word section and a JSON file.

Tag compliance

02 · How a run works

Four steps, left to right.

  1. Credentials

    Your default AWS credentials, a named profile, keys from an accounts file, or an assumed role.

  2. Discovery

    For each account and region: the Tagging API, per-service read calls and Cost Explorer.

  3. Enrichment

    Your tag columns and descriptions, optional network and security analysis.

  4. Output

    Excel and Word files in bom_output/, plus a snapshot the next run compares against.

03 · Before you rely on it

Plain about the edges.

  • Some options are not built yet. If you use one, the run stops with a clear “not implemented yet” message instead of ignoring it. The feature status page lists what works today.
  • By default, discovery calls Cost Explorer, and AWS charges for each Cost Explorer request. Read the notes on cost before you scan many accounts.
  • InvenTag has its own discovery code for 46 AWS services and has only been tested against mocked AWS, not a real account.
  • It gathers evidence, such as a list of resources and how well they are tagged. It does not certify that you meet any compliance standard.

Start with one account. It takes about ten minutes.

InvenTag is an independent open-source project. It is not affiliated with, endorsed by, or sponsored by Amazon Web Services.