It is kind of stupid to wait for your monthly AWS bill to see what you are paying. Checking your console is one option. Another would be if there was an API to get the data in an CSV (Excel compatible file).
Google just announced its Billing API for its cloud.
Tools for monitoring, analyzing and optimizing cost have become an important part of managing cloud services. But these tools are difficult to build if the usage data is only in the Google Cloud Console. We are happy to announce a solution to this problem. The Billing Export feature addresses this need, and it is available in Preview.
Once enabled, your daily Google Cloud Platform usage and cost estimates will be exported automatically to a CSV or JSON file stored in a Google Cloud Storage bucket you specify. You can then access the data via theCloud Storage API, CLI tool or Cloud Console file browser. Usage data is labelled with project Number and resource type. You have full control of who can access this data via ACLs on your Cloud Storage bucket.
Programmatic Billing Access
Programmatic Billing Access leverages existing Amazon Simple Storage Service (Amazon S3) APIs so you can build applications that reference your billing data from a CSV (comma-separated value) file stored in an Amazon S3 bucket.
IAM users with access to the billing pages can set the Programmatic Billing preferences.
Here's how it works:
Programmatic Billing Access Process
Log in to the Billing Preferences page.
Enable CSV reporting of your billing statement.
Sign up for Programmatic Billing Access by providing a bucket location for the CSV files.
Set a policy on the bucket granting AWS access to publish your CSV files to the bucket at the specified location.
The CSV files are stored in Amazon S3 at standard Amazon S3 pricing.
Use an application, such as Microsoft Excel, to parse the billing data. Or, use the existing Amazon S3 API to write an application that accesses your billing data.
AWS provides SDKs for developing applications in specific languages. For links to the complete set of AWS SDKs, see Sample Code & Libraries.
The following diagram shows how Programmatic Billing Access works.