Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hjacobs/aws-cost-and-usage-report
Simple script to generate a TSV file using the AWS Cost Explorer API
https://github.com/hjacobs/aws-cost-and-usage-report
Last synced: 3 months ago
JSON representation
Simple script to generate a TSV file using the AWS Cost Explorer API
- Host: GitHub
- URL: https://github.com/hjacobs/aws-cost-and-usage-report
- Owner: hjacobs
- License: gpl-3.0
- Archived: true
- Created: 2017-11-29T19:53:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-03T13:13:03.000Z (about 4 years ago)
- Last Synced: 2024-06-28T07:36:36.429Z (5 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 86
- Watchers: 3
- Forks: 54
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
===============
AWS Cost Report
===============Simple example script to generate a TSV file using the `AWS Cost Explorer API `_.
Usage:
.. code-block:: bash
$ # login to consolidated billing account
$ pip3 install -U boto3
$ ./aws-cost-and-usage-report.py --days=7 >> results.tsvThe ``results.tsv`` file can be opened in your favorite spreadsheet application. Its contents look like:
========== ============= ====================================== ====== ==== =========
TimeSpan LinkedAccount Service Amount Unit Estimated
========== ============= ====================================== ====== ==== =========
2017-10-29 123123123123 AWS CloudTrail 12.34 USD False
2017-10-30 123123123123 ... 24.50 USD False
...
2017-11-27 001111111111 AWS CloudTrail 0 USD True
2017-11-27 001111111111 AWS Key Management Service 0.3336 USD True
2017-11-27 001111111111 Amazon Elastic Compute Cloud - Compute 411.25 USD True
2017-11-27 001111111111 Amazon Elastic Load Balancing 16.201 USD True
========== ============= ====================================== ====== ==== =========