Skip to main content
Version: v1.4.1 (Current)

FinOps checks

Who this is for: you look after cloud spend and want a list of resources to look at, made from the inventory you already have.

What you can do after reading: run the six FinOps checks, read the FinOps sheet, and know what the checks cannot see.

Run the checks​

Shell
inventag --create-excel --finops-checks

The flag is off by default. With it, InvenTag runs six fixed checks on the resources the scan found, and adds a sheet named FinOps as the last sheet of the Excel report.

  • The checks read only the rows the scan already has. They make no further AWS call and need no further permission. The read-only guard sees the same calls with and without the flag.
  • The checks change nothing in an account.
  • The findings do not change the exit code: a run with fail results exits as it would without them.
  • Without the flag, the checks do not run: the report has no FinOps sheet, and the other sheets and the console text are the same as with the flag.

The six checks​

Check IDResourcesResult fail when
FIN-001EBS volumesthe volume's State is available (no attachment)
FIN-002Elastic IP addressesthe address has no AssociationId
FIN-003EBS snapshots owned by the scanned accountthe snapshot's StartTime is more than 90 days before the run started
FIN-004EC2 instancesthe instance state is stopped
FIN-005Load balancersno target group of the same account and region names it (ELBV2 sheet), or it lists no instance (classic load balancers, ELB sheet)
FIN-006Every resource in the scope of the built-in finops-cost-allocation tag policya key of that policy is missing: CostCenter, Owner, Project or Environment

The 90 days of FIN-003 is fixed; there is no option to change it.

FIN-006 uses the same check as the finops-cost-allocation tag policy (see Check tag compliance), but it looks only for missing keys. A key whose value the policy does not allow is not a FIN-006 finding. Tag keys are case-sensitive: owner does not count as Owner. Rows that come only from Cost Explorer (source billing) are not checked.

Results​

Each check gives one of three results for each resource:

  • fail: the check observed what the table says. The resource is listed.
  • not_evaluated: the data the check needs is not there. The resource is listed with a reason.
  • pass: the resource is counted, not listed.

A gap in the data is never a pass. The reasons are:

ReasonMeaning
identity_onlyThe resource is known only from the Resource Groups Tagging API, so the field the check reads is not on its row.
field_missingThe field the check reads is not on the row. For FIN-003, also when the run has no start time.
tags_not_readFIN-006 only: a key is missing and the Tagging API listing of that region failed in this run. For a global resource, any failed Tagging API listing of the account counts.
listing_not_readA listing the check needs failed in this run. Each check that needs that listing gets one line for it and its region: one failed ec2 listing gives four lines (FIN-001, FIN-003, FIN-004, FIN-006).

The FinOps sheet​

The first line of the sheet says: "These are observations from the inventory. A resource listed here may be intended."

Then the listed results, with these columns: Check ID, Check, Result, Reason, Account, Region, Service, Resource Type, Resource ID, Name, Observed. Rows are sorted by check ID, account, region and resource ID. Observed states what the check saw, for example "no attachment", "started 2026-05-02", "state stopped" or "missing: CostCenter, Owner". Nothing else from the API answer is copied into the sheet.

After the listed results comes a table with one row per check and the counts Fail, Not evaluated and Pass.

A sample, made by the docs generator from a mocked AWS account:

Sheets: Summary, ATHENA, DYNAMODB, EC2, EVENTS, IAM, KMS, LAMBDA, S3, VPC, FinOps

FinOps sheet:

These are observations from the inventory. A ...

Check IDCheckResultReasonAccountRegionServiceResource TypeResource IDNameObserved
FIN-001EBS volume with no attachmentfail123456789012us-east-1EC2Volumevol-57d5df4cfc9884b48acme-build-cacheno attachment
FIN-006Cost allocation tag key missingfail123456789012globalIAMRoleacme-orders-api-rolemissing: CostCenter, Owner, Project, Environment
FIN-006Cost allocation tag key missingfail123456789012us-east-1VPCNetworkAclacl-3118daa9d5cc099a7missing: CostCenter, Owner, Project, Environment
FIN-006Cost allocation tag key missingfail123456789012us-east-1S3Bucketacme-data-lakeacme-data-lakemissing: Project
FIN-006Cost allocation tag key missingfail123456789012us-east-1S3Bucketacme-inventory-reportsacme-inventory-reportsmissing: CostCenter, Owner, Project, Environment
FIN-006Cost allocation tag key missingfail123456789012us-east-1S3Bucketacme-new-bucketacme-new-bucketmissing: CostCenter, Owner, Project, Environment

With --per-account-reports, the report of each account lists only that account's results.

With --template, the checks do not run: InvenTag prints a warning and writes no FinOps sheet.

The finops_checks result​

The command line writes the results only as the FinOps sheet. In Python, CloudBOMGenerator.generate_multi_account_bom() returns them under the key finops_checks, and a JSON report written with the json output format has the same key in its metadata. The key holds:

  • schema_version: 1.
  • summary: one entry per check, with policy (the check ID), check, fail, not_evaluated and pass.
  • findings: the listed results, with policy, result, reason, account, region, service, resource_type, resource, name and message (the Observed text).

Without the flag, the key is not there.

What the checks cannot see​

  • FIN-004 gives no duration. The instance listing has no reliable stop time, so a stopped instance is listed however long it has been stopped.
  • FIN-005 does not read target health. A load balancer whose targets are all unhealthy is a pass. Reading target health would need a new AWS call.
  • A resource listed here may be intended: for example, an instance stopped on purpose or a snapshot kept by a retention rule.
  • The checks show no amounts of money.
  • Not verified against real AWS: that the listings carry the fields each check needs on every account type.