amazon-web-servicesaws-lambdaboto3billing

Is there any way to Download billing reports in an automated way?


Is there any way to automate all of the "download CSV" options in AWS defaults reports and push it to S3 storage using python lambda or by using any other services.?

Example,

The billing information can be downloaded from the 'bills' section of the AWS console. Screenshot attached

download csv billing report

billing report download csv popup


Solution

  • What you're looking for is the DBR (Detailed billing report - deprecated) or the CUR (Cost and allocation report) which is what you want to use.

    https://docs.aws.amazon.com/cur/latest/userguide/cur-create.html

    To create Cost and Usage Reports:

    Note Including resource IDs will create individual line items for each of your resources. This can increase the size of your Cost and Usage Reports files significantly, based on your AWS usage.