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
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
failresults exits as it would without them. - Without the flag, the checks do not run: the report has no
FinOpssheet, and the other sheets and the console text are the same as with the flag.
The six checks
| Check ID | Resources | Result fail when |
|---|---|---|
FIN-001 | EBS volumes | the volume's State is available (no attachment) |
FIN-002 | Elastic IP addresses | the address has no AssociationId |
FIN-003 | EBS snapshots owned by the scanned account | the snapshot's StartTime is more than 90 days before the run started |
FIN-004 | EC2 instances | the instance state is stopped |
FIN-005 | Load balancers | no target group of the same account and region names it (ELBV2 sheet), or it lists no instance (classic load balancers, ELB sheet) |
FIN-006 | Every resource in the scope of the built-in finops-cost-allocation tag policy | a 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:
| Reason | Meaning |
|---|---|
identity_only | The resource is known only from the Resource Groups Tagging API, so the field the check reads is not on its row. |
field_missing | The field the check reads is not on the row. For FIN-003, also when the run has no start time. |
tags_not_read | FIN-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_read | A 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 ID | Check | Result | Reason | Account | Region | Service | Resource Type | Resource ID | Name | Observed |
|---|---|---|---|---|---|---|---|---|---|---|
| FIN-001 | EBS volume with no attachment | fail | 123456789012 | us-east-1 | EC2 | Volume | vol-57d5df4cfc9884b48 | acme-build-cache | no attachment | |
| FIN-006 | Cost allocation tag key missing | fail | 123456789012 | global | IAM | Role | acme-orders-api-role | missing: CostCenter, Owner, Project, Environment | ||
| FIN-006 | Cost allocation tag key missing | fail | 123456789012 | us-east-1 | VPC | NetworkAcl | acl-3118daa9d5cc099a7 | missing: CostCenter, Owner, Project, Environment | ||
| FIN-006 | Cost allocation tag key missing | fail | 123456789012 | us-east-1 | S3 | Bucket | acme-data-lake | acme-data-lake | missing: Project | |
| FIN-006 | Cost allocation tag key missing | fail | 123456789012 | us-east-1 | S3 | Bucket | acme-inventory-reports | acme-inventory-reports | missing: CostCenter, Owner, Project, Environment | |
| FIN-006 | Cost allocation tag key missing | fail | 123456789012 | us-east-1 | S3 | Bucket | acme-new-bucket | acme-new-bucket | missing: 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, withpolicy(the check ID),check,fail,not_evaluatedandpass.findings: the listed results, withpolicy,result,reason,account,region,service,resource_type,resource,nameandmessage(theObservedtext).
Without the flag, the key is not there.
What the checks cannot see
FIN-004gives no duration. The instance listing has no reliable stop time, so a stopped instance is listed however long it has been stopped.FIN-005does 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.