Sub topic 1
Where AWS cost data comes from
Prerequisites
This chapter assumes you know what an AWS account and AWS Organizations are, and that you can name common services such as EC2, S3 and RDS. You should be able to sign in to the AWS Management Console. Command-line use is optional.
How usage becomes a bill
Every AWS API call, running instance hour and stored gigabyte is metered. AWS records this as usage and prices it with the rates that apply to your account. The priced records are what Cost Explorer, Budgets and the Cost and Usage Reports read. Cost Explorer does not hold separate data. It is a view over your billing records.
Each record carries a few fields that you will use later for grouping and filtering:
| Field | What it tells you | Example |
|---|---|---|
| Account | Which AWS account incurred the charge | 111122223333 |
| Service | Which AWS product produced the usage | Amazon Elastic Compute Cloud - Compute |
| Usage type | The specific kind of usage within a service | BoxUsage:m5.large |
| Region | Where the usage happened | us-east-1 |
| Tags | Labels attached to the resource | Project=checkout |
Service, usage type and region are properties of the usage itself, so they are available without any setup. Tags are different. They exist only if someone applied them to the resource, and cost reports can use them only after you activate them. Later chapters cover that process.
Accounts and the management account
In a single account, billing data covers that account only. With AWS Organizations, the management account is the payer. It receives the consolidated bill for all member accounts. It can see costs for every member account, and each member account sees only its own costs.
This matters for tags. Cost allocation tag settings are controlled from the management account, so you will need access to it, or someone who has it, before tag-based reports work.
Timing and common surprises
Billing data is not instant. Cost Explorer data is typically refreshed at least once a day, and recent figures can change as AWS finishes processing usage. Treat the last day or two as provisional.
Common errors at this stage:
- Expecting to see a charge the moment a resource starts. Usage appears after processing, not in real time.
- Reading a member account's view and assuming it shows the whole organization.
- Assuming a tag you applied yesterday already appears in reports. Tags must be activated, and they apply to costs from activation onward unless you request a backfill.
- Comparing months without noticing that a charge, such as a support fee or a credit, appears in only one of them.
Exercise
You sign in to a member account in an AWS Organization and see lower total costs than your finance team reports for the company. What is the most likely reason, and where should you look instead?
Show answer
A member account sees only its own costs. The finance team is reading the consolidated bill, which covers all member accounts. Look at Cost Explorer in the management account to see organization-wide spend.