Count billable HCP Terraform Resources Under Management (RUM) in a local state file, before the invoice.
HCP Terraform bills per Resource Under Management. A team sees that count on the billing page afterwards, without a per-resource explanation.
rum-meter reads a local terraform.tfstate (format v4), counts RUM from HashiCorp's definition, explains each instance, breaks the total down by module and type, and can diff two states.
$ rum-meter count tests/fixtures/v4_one_managed.json file: tests/fixtures/v4_one_managed.json rum: 1 not counted: R2 0, R3 0, R4 0 total rum: 1 not counted: R2 0, R3 0, R4 0 modules: (root): 1 types: random_id: 1 estimate: HCP Terraform bills the hourly peak; this is a single snapshot
cargo install --locked rum-meter