A three-cloud team finds out which environments its bills belong to
- bills in one view: AWS, Azure and Google Cloud
- 3
- share of billed spend that belonged to no environment
- 77% to 8%
- inactive AWS cost allocation tag behind the largest part of the gap
- 1
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 60-engineer data platform company runs its product on AWS, its analytics on Google Cloud, and a set of enterprise customers' dedicated deployments on Azure. Finance receives three invoices in three formats. Engineering leadership is asked a simple question every quarter, which is what production costs against everything else, and answers it with a spreadsheet that takes a week and is disputed by the time it is finished.
The resources are tagged, or so everyone believes. The trouble is that nobody can see what share of the bill the tags actually explain.
What they did
The team connects each provider's billing data to CloudEstate, read-only. Each uses the provider's own source of what was charged:
| Provider | Source | What it needed |
|---|---|---|
| AWS | Cost Explorer, daily, unblended | ce:GetCostAndUsage on the role |
| Azure | Cost Management query API, daily, actual cost | Cost Management Reader on the subscription |
| Google Cloud | BigQuery billing export | The export turned on, and its table named on the credential |
Google Cloud takes two attempts. The first credential has no export table, and the sync says so and explains what to turn on. It does not report zero, which would have looked like a cheap month.
Spend is attributed from a tag, Environment by default, matched against each environment in the platform. On Google Cloud the same key is read from labels. Anything that matches nothing is kept as an unattributed line and not dropped.
The first sync is the useful shock. On AWS, the tag grouping attributes nothing at all. The sync checks why and reports it: the Environment key was on the resources but had never been activated as a cost allocation tag, so Cost Explorer returned every charge as untagged with no error. The sync falls back to service and region for that run, and the team activates the key in the management account. The background is in cost allocation tags not showing in Cost Explorer.
Once the key is active, the remaining unattributed spend is a real list of resources with missing or misspelled tags, ordered by cost. The team works it from the top, and adds the built-in required-tags rule to policy so that new infrastructure deployed through the pipeline cannot arrive untagged.
What changed
Against about $69,200 a month of billed spend across the three clouds, in example figures:
| Unattributed spend | First sync | After the AWS tag was activated | Eight weeks later |
|---|---|---|---|
| AWS, of $41,200 | $41,200 | $11,948 | $2,884 |
| Azure, of $18,600 | $7,068 | $7,068 | $1,488 |
| Google Cloud, of $9,400 | $4,888 | $4,888 | $1,034 |
| Total | $53,156 | $23,904 | $5,406 |
| Share of the bill | 77% | 35% | 8% |
The first drop cost nothing but a setting. The second took eight weeks of tagging, and it went quickly because the list was sorted by money: the first twenty items were more than half of it.
The quarterly question now has an answer on a page. Production, staging and development each show their billed spend, and the unattributed line is 8% and shrinking, not hidden inside the other three.
The view also shows the list-price estimate beside what was billed. For production the estimate runs well above the invoice, as it should for an account with commitment discounts. The team stops arguing about which number is right, because the page shows both and says where each comes from.
What this scenario shows
This is an illustrative scenario with example figures, not a customer result. What it demonstrates is the mechanism:
- Attribution fails silently. A tag that is on the resource and missing from the bill produces no error, only a total that explains nothing.
- Spend that cannot be placed should stay on the page as its own line. Dropping it makes every other figure look complete.
- A source that has no data should say so. A zero is a claim, and "the export is not turned on" is an instruction.
- An unattributed list sorted by cost is a backlog a team can finish. A tagging policy with no numbers is not.