Skip to main content
Billing is AWS Marketplace metering, pay-as-you-go: the detect service checks at startup that the account is subscribed, then reports its hourly document counts to AWS through the metering-marketplace VPC endpoint. The rehydrate service doesn’t meter at all. AWS bills you on your AWS bill. Prices are on your offer.

When to use it

Read this when you set up IAM and endpoints for a new account, when detect refuses to start with a metering error, or when the unreported-usage alarm fires. There’s nothing to configure — no license key, SKU, tier or grace period.

What the services do

  • At startup, detect checks the entitlement. After the KMS step, it calls MeterUsage with DryRun through the metering-marketplace endpoint. Any error except throttling stops the process before it serves:
    A throttled check logs a WARNING and starts anyway.
  • Every hour, detect reports usage. Each detect task reports its usage for each closed hour, and for the open hour when it shuts down. It counts documents that /detect, /redact and /deidentify answered with a status below 400; failed requests aren’t counted.
  • Rehydrate is never billed and never checks. It can only restore what an entitled detect stored, so it doesn’t call metering and its role has no MeterUsage grant. After you unsubscribe, a restarted rehydrate can still restore stored sessions until their TTL; detect refuses to start, so nothing new is stored.
  • Billing never touches a request. Reports are sent in the background. A report that fails for good is logged at ERROR:
  • Unsubscribing stops new detect tasks, not running ones. AWS keeps a running task entitled; the next detect task to start fails its check.

What it needs

The opt-in usage-telemetry egress to Tenet is a separate thing: billing never depends on it and never needs a NAT gateway. Data flow.

The unreported-usage alarm

The CloudFormation template and the Terraform module create it on the detect log group: The Helm chart creates no alarm. On EKS, put the same filter on wherever your log agent ships the detect pods’ logs. Monitoring.

Check billing health end to end — subscription, endpoint, IAM, alarm and logs. Read-only.

Open in Cursor

Gotchas

  • Subscribing in one account doesn’t entitle another. Subscribe from the account the services run in.
  • Node-role credentials fail the startup check. Granting MeterUsage to the EKS node role, or using EKS Pod Identity, doesn’t work — only IRSA does.
  • No endpoint, no detect. A deleted or policy-restricted metering-marketplace endpoint stops every new detect task.
  • metering send failed warnings are retries, not losses. Alarm on unbilled usage lost, which is final.