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,
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.
If you get a prompt to add a Default Bucket Policy, accept it.
Create a Report Path Prefix, for example
Please ensure that you've selected Hourly, GZIP and Create New Report Version in the options, then click Next, then click Review and Complete.
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.
Click on this link to run the CloudFormation Template on your account
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).
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.