Integrate New Cost Reports

Only use these instructions if you DO NOT have pre-existing AWS Cost and Usage Reports.

Step 1: Create a new AWS Cost and Usage Report

  • Sign in to the AWS Management Console and open the Billing and Cost Management console.

  • In the navigation pane to the left, choose Cost & Usage Reports under Cost Management in the left panel, and click Create report.

  • Give your Cost Report a name. For example, general-cost-report.

Please note down the Name of the Cost Report

  • Make sure that both Include resource IDs and Data refresh settings are checked, and click Next

  • Under Delivery options, press Configure and create a new bucket and give it whatever name you like.

Please note down the Name AND the Region of the S3 Bucket

  • If you get a prompt to add a Default Bucket Policy, accept it.

Please ensure that you create a new top level bucket for your Cost Reports and that you don't nest a Cost Reports Folder inside another existing folder in your S3 Bucket.

  • Create a Report Path Prefix, for example main.

Please note down the Report Path Prefix

  • Please ensure that you've selected Hourly, GZIP and Create New Report Version in the options, then click Next, then click Review and Complete.

Step 2: Delete the S3 Bucket Policy

  • Go to the S3 Console.

  • Click on the bucket with the Cost Report. (the one you created in Step 1)

  • Click Permissions, and then Bucket Policy, and click Delete Policy.

Step 3: Run CloudFormation Template (New Bucket)

Make sure that you are running the CloudFormation template in US East-1 (N. Virginia) or it will not run correctly.

  • In the console, keep both pre-selected options as Template is ready, and Amazon S3 URL, and leave the URL as is, then click Next

  • Recall the names of the S3 Bucket with the Cost Report, the AWS Region where the S3 Bucket is located, and the Report Name and Report Prefix for the Cost Report you just created.

  • For the External ID Field, you can use pretty much any External ID, (e.g.: tim-ext-id).

  • Click Next

Please make sure that you only use the Prefix in the Prefix field (e.g.: main). Not the Prefix + Report Name (e.g.: main/costreport)

The External ID cannot have the following characters: $, #

  • On the following page scroll down and click Next again

  • On the following page scroll down, acknowledge that this template might create IAM resources by checking the box, then click Create Stack.

  • In the next page, you will have to wait 2-3 minutes for the stack to get created. You can click the refresh icon in the Console.

  • When all is green, you are ready to go save for one more optional step.

Step 4: Add Sub Accounts