AWS Cost Management
AWS Cost and Usage Report
The most comprehensive set of AWS cost and usage data: it publishes detailed billing reports to an Amazon S3 bucket, broken down by hour, day, or month, and by product, resource, or tags. The reports can be queried with Amazon Athena or loaded into Amazon Redshift.
Exam phrases that point here
«the most detailed cost and usage report, by the hour and by resource»
The AWS Cost and Usage Report is the most detailed billing dataset in AWS: it can be broken down by hour, day, or month, by product, by resource, and by tags.
When not: If viewing trends and grouping spend in charts is enough, without processing files, AWS Cost Explorer is more direct. If you want an alert when an amount is exceeded, it is AWS Budgets.
«deliver billing data to an Amazon S3 bucket for processing»
The report is exported to your own S3 bucket, at least once a day, in CSV or Parquet, ready for other tools to read.
When not: Today it is created as an AWS Data Exports export (CUR 2.0); the legacy CUR still exists but with a different API. If the question is about API call records and not about costs, the answer is AWS CloudTrail.
«query costs with SQL»
With the report in S3 in Parquet format, an AWS Glue crawler creates the table and Amazon Athena lets you query it with serverless SQL; it can also be loaded into Amazon Redshift.
When not: If business users want visual dashboards rather than writing SQL, the pattern is a dashboard in AWS Quick Sight (formerly Amazon QuickSight) on top of that data. For a one-off look at spend, Cost Explorer avoids building this pipeline.
«split the cost of instances among the containers that run on them»
Split Cost Allocation Data assigns each Amazon ECS container (and AWS Batch jobs) a share of the EC2 instance cost based on its CPU and memory usage, and reflects it in the Cost and Usage Report.
When not: It has to be turned on from the management account or a standalone account; without that option the report only shows the cost of the whole instance. To split by team or project without containers, cost allocation tags are enough.
Often paired with
- Amazon S3
- Amazon Athena