Skip to content
Illustrative scenario30-engineer B2B SaaS team with one platform engineer

A SaaS team prices every Terraform change before it deploys

plans that reached approval with a monthly cost difference attached
214 of 214
changes stopped by a cost rule before anything was created
9
not added to the bill after those nine were resubmitted (list-price estimate)
$2,350/mo

This is an illustrative scenario. The team is a composite and the figures are examples chosen to be plausible. It shows how CloudEstate behaves, not the results of a named customer.

The situation

A 30-engineer B2B SaaS team deploys to AWS from Terraform, several times a day. Its bill has risen every month for a year. One platform engineer reviews Cost Explorer at month end, finds the services that grew, and asks around until someone remembers the change that caused it.

The cleanup works and does not last. By the time a charge shows on the invoice, the resource has been running for weeks, something depends on it, and removing it is a project. The team has looked at cost tools, and every one of them reads the same bill the engineer already reads. The decision that cost the money was made in a pull request, and nobody at that review could see a price.

What they did

The team moves its deployments onto the CloudEstate pipeline, so every change takes the same path whether it comes from a form or from CI with an API token:

render → init → validate → plan → policy → cost → graph → approval → apply

The cost step prices what the plan will create, per resource, against published list prices, and attaches a prior-to-planned difference. The approval request carries that figure, computed from the requester's own inputs, so a reviewer reads "this change adds $214 a month" beside the diff.

The estimate is split in two on purpose:

  • Charged for existing. An instance-hour, a provisioned disk, a gateway. This is what the change costs if nobody uses it.
  • At assumed usage. Requests, log ingestion, data transfer, from stated usage assumptions.

That split settles an early argument. A preview-environment template puts a NAT gateway in each of three zones, which is $98.55 a month charged for existing before a byte moves. The template is changed to one gateway for previews.

Three rules from the built-in set are switched on in policy. Each is dry-run against the existing inventory first, to see what it would flag before it can block anything:

RuleSettingMode
Development cost ceilingA development environment must not exceed $400 a monthBlocking
Cost increaseA single change must not add more than $250 a monthBlocking
Approved instance sizesOnly sizes on a named list may be createdBlocking

A blocking rule refuses the change on the plan, so the resource is never created. Where a larger change is justified, the requester asks for a waiver with a reason, a scope and an expiry, and an approver grants it. An API token cannot approve a run, so the gate cannot be scripted away.

The team also connects billing with ce:GetCostAndUsage, so the cost page shows the estimate beside what AWS charged.

What changed

Over the first ten weeks, in example figures:

MeasureResult
Plans that reached approval with a monthly difference attached214 of 214
Plans stopped by a cost rule9
Of those: resubmitted smaller5
Of those: applied under a waiver with an expiry3
Of those: withdrawn1
Monthly cost of the nine as first submitted$4,310
Monthly cost of what was finally applied from them$1,960

The difference, $2,350 a month, is spend that was never created. It is a list-price estimate, so it runs higher than the invoice would have. The team reads it as a direction, and confirms the trend on the cost page, where billed spend sits beside the estimates.

The stopped changes are ordinary. A staging database is requested at four sizes above what production runs, and comes back at one. A load test asks for a fleet and forgets a teardown date, so it is resubmitted as a preview environment with a three-day expiry. Nobody was careless. Nobody had been shown the number.

The month-end review still happens. It takes an hour, because the platform engineer is no longer reconstructing who changed what: each estimate is recorded against the run that produced it.

What this scenario shows

This is an illustrative scenario with example figures, not a customer result. What it demonstrates is the mechanism:

  • A bill is a record of decisions already made. Reading it finds waste; it cannot prevent it.
  • A Terraform plan lists exactly what will be created, so the price can be known before approval.
  • A cost limit that refuses a change is different from a budget alert, which reports the spend after it has happened.
  • Exceptions are allowed, with a reason and an end date, so a limit does not become a reason to work around the pipeline.
  • Estimates use list prices and run higher than the invoice, which is why they are shown beside billed spend and not instead of it.

More scenarios

Illustrative scenarioE-commerce

An online retailer clears $774/mo that a migration left running

Illustrative scenario: after moving to containers, a retailer finds idle load balancers, unused NAT gateways and stopped databases, with evidence for each.

Illustrative scenarioData and analytics

A three-cloud team finds out which environments its bills belong to

Illustrative scenario: a data company puts AWS, Azure and Google Cloud bills in one view, attributes spend by tag, and traces the largest gap to one setting.

Start with one scan

See your own account, not a demo of someone else’s.

Connect a cloud credential with read permissions and run one scan. The inventory, the diagram, the findings and the cost figures are all filled from it.

Read-only to start · no agent to install