Blog Details

blog
about

The Cloud Bill Nobody Reads

The Cloud Bill Nobody Reads

Most cloud bills are not read, they are approved. Finance signs off on a number that grew another fifteen percent, engineering says the infrastructure has not changed, and the invoice goes into the archive. Nobody can name the line item that doubled, because the bill lists services rather than decisions.

That gap is where money accumulates. A team moves a monolith into containers, private subnets go in because that is what the reference architecture shows, and every outbound call now travels through a NAT gateway. The diagram still has one arrow labelled internet. The bill now has a charge for every gigabyte that crosses that arrow.

The bill is a per-gigabyte machine

Cloud pricing is mostly metered by volume, not by feature. That is the part engineers misread. A NAT gateway in us-east-1 costs $0.045 per hour, about $32 a month before it moves a byte, plus $0.045 for every gigabyte processed. Egress to the internet adds $0.09 per gigabyte for the first 10 TB. Upload one gigabyte through that path and the real cost is roughly 13.5 cents, three times the number on the pricing page. A workload pushing 5 TB a month through a gateway lands near $258 for connectivity alone, and a three-zone setup triples the hourly line before traffic is counted.

Nothing about that is hidden. It is spread across four pricing pages and two service names, which is enough to keep it out of most architecture reviews.

Logs are the other quiet one. CloudWatch charges $0.50 per gigabyte to ingest standard logs and $0.03 per gigabyte per month to keep them. A service that writes two kilobytes per request, at fifty requests a second, produces about 260 GB a month. That is $130 in ingestion from logging nobody decided to add. Multiply by the number of services in the account and by every environment that shares the same log level as production.

The arithmetic is worth doing before the bill arrives. A log line of 400 bytes, six lines per request, twenty requests a second, is about 4 GB a day. Turn on debug in the payment service during a week-long incident and the same code path writes several times that. Retention decides whether the extra gigabytes are a one-month charge or a permanent one, and only one of those is easy to reverse.

Neither line is an engineering failure. Both are what happens when a team builds from defaults and reviews the total instead of the components.

Where the money actually sits

Almost every surprising bill traces to four places, and three of them are boring.

  • Data movement. Cross-zone traffic at a cent per gigabyte in each direction, NAT processing, egress, and inter-region replication. Services that call each other constantly pay for it twice.
  • Logs and metrics. Ingestion, retention, and custom metrics billed per unique dimension combination. High-cardinality labels such as user id or request id turn one metric into a thousand.
  • Non-production. A staging environment sized like production, running all night, used for a two-hour deploy window. Add staging copies of third-party services and the non-prod bill often reaches 30 to 40 percent of production.
  • Idle capacity. Load balancers with no targets, gateways in a decommissioned zone, volumes nobody reattached, committed capacity for a service that shrank six months ago.

Only the third item tends to appear on a roadmap. The other three arrive through architecture and habit.

Tags do not fix this

The standard answer is to tag everything and build a cost dashboard. Tags help with accounting. They do not help with decisions, for two reasons.

First, tags are set at creation and rarely revisited, so a resource that changed owners three times still carries the first team's name. Second, shared infrastructure has no honest owner. The database serves four products, the logging pipeline serves nine, the NAT gateway serves everything in the VPC. Splitting those costs is an allocation exercise with an arbitrary answer, and teams learn to ignore the resulting report.

A tag answers which team. The useful question is which request.

Unit economics, not totals

A total bill is a weak steering signal because it moves for reasons you do not control. Traffic doubled and the bill doubled, which is fine. Traffic doubled and the bill tripled, which means something in the design scales badly. You cannot tell those apart from the headline number, and you cannot explain either one in a planning meeting.

Pick a denominator that matches the product: cost per order, per thousand API calls, per active tenant, per gigabyte delivered. Then watch the ratio over time. A checkout service that costs 1.1 cents per order and drops to 0.4 cents after one third-party call moves off the request path has produced a design decision you can defend. A bill that fell 8 percent because a team deleted a staging cluster has produced a saving that comes back next quarter, along with the staging cluster.

This also makes cost a fair review topic. A pull request that costs three times what the previous one did is a concrete engineering question with a diff attached. The account total is not.

Multi-tenant platforms need this measurement more than anyone. Fifteen thousand tenants produce a fixed baseline of shared services that looks reasonable in total while hiding the fact that a handful of large accounts cost more to serve than they pay. Without a per-tenant or per-workspace figure, the biggest customer looks like revenue and behaves like a subsidy.

The architecture choices that set the number

Cost gets decided long before the invoice, in a handful of design calls that look like performance decisions at the time.

Chatty services

A service mesh that routes every internal call across availability zones bills for both directions of every hop. A synchronous chain of five services, each fanning out to three, turns one user action into fifteen network charges. Batching, caching, and collapsing calls that do not need to be remote usually beat any instance-size optimisation.

Over-fetching data

A list endpoint that runs a select-all on a forty-column table, then serialises it to a mobile client that reads four fields, pays for the extra bytes three times: database transfer, application memory, and egress. At a hundred requests a second that compounds into a real number well before the end of the quarter.

Rendering on demand

Resizing images or generating PDFs at request time is simple to ship and expensive to run. Pre-generating at upload costs storage, which is cheap, and removes a compute charge from every page view, which is not.

Retention nobody chose

Object storage lifecycle rules default to keep forever. Payment records, audit logs, and originals of user uploads may genuinely need years. Session traces and build artefacts do not. A lifecycle rule that moves anything older than thirty days to cold storage costs nothing to add and shows up in the next bill.

Third-party calls on the hot path

A vendor that charges per address validation or per geocode request is cheap at launch and expensive at scale, because the price scales with traffic while the value does not. Move what can be cached to a nightly job, negotiate a committed volume before the usage curve gets steep, and keep a fallback so a pricing change does not become an outage.

None of these require a rewrite. Each requires someone to look at the unit cost before the feature ships.

Commitment discounts are a trap before you understand the baseline

Reserved instances and savings plans are sold as the obvious next step, and for a stable workload they are. The problem is that they lock in whatever the architecture looks like today. Buy three years of compute for a fleet that is about to be consolidated onto a quarter of the instances and the discount becomes a penalty with a two-year tail. Get the baseline right first: measure for eight weeks, remove the idle capacity, finish the consolidation, then commit against the shape that survives. The same caution applies to committed storage and to multi-year vendor contracts signed during a growth spike.

What holds up in practice

The teams that keep cloud spend predictable do four unglamorous things.

  1. They put a monthly budget per service in the repository next to the infrastructure, with an alarm at 70 percent. Not an account-level alarm that fires after the damage, but one that names the service in the alert.
  2. They schedule non-production off. Staging runs twelve hours a day, five days a week, except during a release window. That single change removes a quarter of the non-prod bill and costs nothing except a cron job and a note in the runbook.
  3. They fix logging at the producer. Debug in development, info in production, sampling on high-volume paths, and a retention rule per log group. Filtering at the collector is the expensive way to solve a problem that starts in the application.
  4. They review spend weekly, not quarterly. Fifteen minutes, one owner per service, one question: what changed. Cost regressions are far easier to find in the week they appear than in a quarterly meeting nine deploys later.

The first month

A practical sequence for an account that has never been examined.

Start by pulling three months of billing data grouped by service and by usage type, not by team. The usage-type view is what exposes data transfer and log ingestion, and it is the view almost nobody opens. Compare production and non-production spend next. If non-prod is above 25 percent of the total, work there first, because scheduling beats optimisation and it needs no engineering change.

From there, list every log group with its monthly ingestion volume and retention setting. Cut retention on anything without a compliance reason and lower the level on anything above a gigabyte a month. Pull the top ten resources by cost and ask one question about each: does this still serve traffic. Last, pick one product and compute a unit cost for it. Just one. That exercise surfaces at least one design decision nobody remembers making.

The whole pass is about a week of work for a mid-sized account, and it tends to bend the trend line before any architecture work begins.

Cheap is not the goal

There is a version of this advice that ends with a single-zone deployment and no backups, and it is a bad trade. Redundancy, restore drills, and retained audit logs cost money because they buy something real. The point is not to spend less. The point is to know which line item is buying reliability and which one is buying a habit.

A bill you can explain is also a bill you can defend when traffic grows. The team that knows its cost per order can scale with confidence and price accordingly. The team that only knows the total is negotiating from guesswork, usually with someone who has a better spreadsheet.

Tech Hub Services builds and reviews production systems where cost, reliability, and security are treated as one design conversation rather than three separate audits. If your cloud spend has outgrown the explanation for it, get in touch at info@techhubservices.com or +1-416-477-6087.

Send Us a Message