Every month the same questions arrive from forty directions. What did this client spend? Why is that one up 30%? What will the quarter look like? If you run AWS for clients, each with their own account, AWS answers these questions well one account at a time. Getting the answers for all forty, side by side, takes a plan.

This guide walks through AWS’s own options, what each costs, and where each stops working for an agency whose clients own and pay for their AWS accounts.

First: who pays the bill?

The answer shapes everything else. There are two common set-ups:

  • Your clients own their AWS accounts and pay AWS directly. You have access to each account, usually through an IAM role, but the bill isn’t yours.
  • You resell AWS. The accounts sit under your company’s billing, and you invoice your clients yourself.

Most of AWS’s multi-account cost tooling assumes the second, because it’s built around AWS Organizations.

Option 1: consolidated billing in AWS Organizations

Every organization has a management account that pays the charges of all the member accounts. In that management account, Cost Explorer can filter and group costs by linked account, so every member’s spend is in one place. Member accounts see only their own costs, and the management account can let them use Cost Explorer or not: for all member accounts or none, not one at a time.

For a reseller, this is the natural set-up. For an agency, it rarely fits:

  • An account can belong to only one organization at a time, so a client with an organization of its own can’t also join yours.
  • Your management account becomes responsible for every member’s charges. That’s a commercial and contractual change, not a reporting choice.

AWS also offers billing transfer: an organization’s management account hands its consolidated bill to a management account outside the organization, which pays it and sets the prices the client sees through AWS Billing Conductor. It’s aimed mainly at AWS Partners who resell AWS, and it changes who pays AWS, so it’s a decision for you, your clients and your finance team rather than a way to get a dashboard.

Option 2: Cost Explorer in each client’s account

Every account has Cost Explorer. Sign in to the client’s account, or switch to a role there, and you can see costs by service, region, usage type and tag, day by day, with AWS’s forecast. A few details matter:

None of this costs anything in the console. The trouble is scale: forty clients means forty sign-ins, forty separate views, and no total. Nobody compares this month against last across forty tabs every Monday.

Option 3: a role in each account, and the Cost Explorer API

The next step is to automate option 2. Each client creates an IAM role in their account that your AWS account can assume, with an External ID that you generate for them (AWS describes the pattern in access to AWS accounts owned by third parties, and our guide on safe read-only access walks through it). A script assumes each role in turn and asks the Cost Explorer API for the numbers: GetCostAndUsage for actual costs, GetCostForecast for the forecast.

Two things to plan for:

  • The API isn’t free. Cost Explorer charges $0.01 a request, and each page of a paginated result counts as a separate request. Because your script works through the client’s role, the charge lands on the client’s bill: as AWS puts it, a third party’s “use of your resources is billed to you”. Eight requests a day per account comes to about $2.40 a month per client, or about $96 a month across forty.
  • You’re building a product. Something has to store each day’s results, chart them, compare months, notice a role that stopped working, and keep up when a client adds tags or a budget. That’s software to maintain.

Option 4: cost exports and a data pipeline

For the most detail, AWS Data Exports delivers the Cost and Usage Report (CUR 2.0) to an Amazon S3 bucket. An export from a management account covers the management account and every member account; a standalone account’s covers that account. You then query the files, with Amazon Athena for example, and build dashboards on top.

It’s the most flexible route and the most work. Forty separate clients means forty exports to set up, files to gather and a pipeline to keep running, and it can take up to 24 hours for AWS to start delivering a new export.

What a useful view of every client shows

Whichever route you take, it should answer these for every client at a glance:

  • this month so far, the month-end forecast, and last month;
  • costs by service, region, usage type and tag, this month and last;
  • the forecast against the client’s AWS Budgets;
  • Savings Plan, Reserved Instance and rightsizing advice, with AWS’s estimate;
  • anomalies that AWS Cost Anomaly Detection has found;
  • and what the view itself costs to run, because API requests add up.

YugmaLink is option 3, built: a read-only console that shows every client’s AWS account side by side. Each client connects with one CloudFormation stack, which creates a read-only role with its own External ID; YugmaLink stores no AWS keys.

For costs, YugmaLink reads each account once a day, usually with 8 to 12 Cost Explorer requests, and asks for AWS’s savings advice once a week: about $2.40 to $3.91 a month on the client’s AWS bill, or at most about $1.44 or $0.82 if you choose to have costs read every 3 days or once a week, for every client at once or client by client: a big client daily, the rest weekly. It shows this month and its forecast against last month, each figure with the day it runs to, and last month marked final once AWS has closed it; costs by service, region, usage type and the cost allocation tag you choose for the account; the last 30 days; a 12-month forecast with its range; the client’s AWS Budgets; Savings Plan advice in four choices, with Savings Plans’ coverage, and Reserved Instance advice; what changed since last month, service by service; the AWS credits you type in, with about what’s left and the month they run out; rightsizing from Cost Optimization Hub, once the account has opted in, or why there’s none; and Cost Anomaly Detection’s findings. For a client with an AWS Organization, connect the management account: its daily read, about $4.21 a month, covers the member accounts, which make no Cost Explorer requests of their own.

Across clients, Home sets every account’s month side by side, and can show an earlier month beside the one before it, from the costs already read. Home’s table and each cost table download as CSV, and a client can have a login that sees only its own accounts.

For rebilling, each client can have a markup or a discount: Reports then shows its costs as billed, and a monthly statement (a CSV with each client’s AWS costs, its markup or discount, and what’s billed) is there to invoice from. A client login never sees a markup. What it doesn’t do: it doesn’t send invoices, or add custom lines, credits or tax per client; for those, look at AWS Billing Conductor. YugmaLink is in early access, and early access starts with a guided demo.

AWS documentation used

See it on your own accounts

Less searching.
More understanding.

Read-only, always. AWS and Azure today; GCP, cPanel and Plesk coming soon.