The Monthly Cost Allocation Report
Setting Up a Monthly Cost Allocation Report
The cost allocation report includes the same line items as the detailed billing report (see Understanding Your Usage with Billing Reports), plus additional columns that you've selected to include in the report, as identified by your tag keys.
By default, new tag keys that you add using the API or the AWS Management Console are automatically excluded from the cost allocation report. You can add them using the procedures described in this topic.
When you select tag keys to include in your cost allocation report, each key becomes an additional column that lists the value for each corresponding line item. Because you might use tags for more than just your cost allocation report (for example, tags for security or operational reasons), you can include or exclude individual tag keys for the report. This ensures that you're seeing meaningful billing information that helps organize your costs. A small number of consistent tag keys makes it easier to track your costs. For more information, see Viewing a Cost Allocation Report.
AWS stores billing reports in an Amazon S3 bucket that you create and own. You can retrieve these reports from the bucket using the Amazon S3 API, AWS Management Console for Amazon S3, or the Amazon S3 command line interface (CLI). You can't download the cost allocation report from the Account Activity page of the Billing and Cost Management console.
To create the keys that appear in the cost allocation report
Sign in to the AWS Management Console and open the Billing and Cost Management console at https://console.aws.amazon.com/billing/home#/.
Choose Preferences on the navigation panel on the left.
For Receive Billing Reports, type a valid Amazon S3 bucket name, and then choose Verify.
Under the Detailed Billing Reports selection grid, choose Manage report tags, as shown in the following screenshot.
The page displays a list of tags you've created using either the API or the console for the applicable AWS service. Tag keys that currently appear in the report are selected, while the check boxes for excluded tag keys are cleared.
Use the Search drop-down box to switch to display excluded tags, as shown in Step 5.
Choose Excluded Tags in the Search column.
Select the check boxes for tags that you want to add to the report.
If you are a Consolidated Billing customer, your cost allocation report includes all the usage, costs, and tags for your linked accounts. By default, all keys registered by linked accounts where you are the payer are available for you to include or exclude from your report. The detailed billing report with resources and tags also includes any cost allocation tag keys that you select using the preceding steps.
Getting an Hourly Cost Allocation Report
The cost allocation report is one of several reports that AWS publishes to an Amazon S3 bucket several times a day.
During the current billing period (monthly), AWS generates an estimated Cost Allocation Report. The current month's file is overwritten throughout the billing period until a final report is generated at the end of the billing period. Then, a new file is created for the next billing period. The reports for the previous months will remain in the designated Amazon S3 bucket.
Viewing a Cost Allocation Report
The following example tracks the charges for several cost centers and applications. Resources (such as Amazon EC2 instances and Amazon S3 buckets) are assigned tags like "Cost Center"="78925" and "Application"="Widget1". In the Cost Allocation Report, the user-defined tag keys have the prefix "user", such as "user:Cost Center" and "user:Application". AWS-generated tag keys have the prefix "aws". The keys are column headings identifying each tagged line item's value, such as "78925".
You can use a desktop spreadsheet application to create pivot tables that group the keys and the values for each key so that you can see combined values for tagged resources. The following example organizes information first by "Cost Center," and within each cost center further organizes the information by the "Application" tag.
Pick your keys carefully so that you have a consistent hierarchy of values; otherwise, your report won't group costs effectively, and you'll have many line items.
If you add or change the tags on a resource part way through a billing period, costs will be split into two separate lines in your Cost Allocation Report. The first line will show costs before the update, and the second line will show costs after the update.
Unallocated Resources in Your Report
Any charges that cannot be grouped by tags in your Cost Allocation Report default to the standard billing aggregation (organized by Account/Product/Line Item) and are included in your report. Situations where you can have unallocated costs include:
You signed up for a Cost Allocation Report mid-month.
Some resources aren't tagged for part, or all, of the billing period.
You are using services that currently do not support tagging.
Subscription-based charges, such as Premium Support and AWS Marketplace monthly fees, cannot be allocated.
One-time fees, such as Amazon EC2 Reserved Instance upfront charges, cannot be allocated.
Amazon Elastic Block Store (Amazon EBS) snapshot charges cannot be allocated, even though Amazon EBS volume charges can be allocated.