This tool will generate a seperate cost report for each of the report groups defined it config.yml
- AWS detailed billing report must be enabled see AWS guide
- AWS detailed billing must be exported to an s3 bucket see AWS guide
- You will need the access keys of an account with access to this bucket see the AWS guide
- Download and install python3 see python.org
- Install AWS CLI
- Download or clone this repo
pip install boto3
pip install pyyaml
- Add your configuration information to the config.yml file
- Configure aws so boto can use the credentials see Boto3 guide
Run the script with python cost-splitter.py
The last months detailed billing report will be downloaded from the s3 bucket to the temp folder
This file will be unzipped and analysed
The results will be printed in the console
For the month of 2016-11
Total Cost: 2009.0603445310903
Report 1 cost is 1371.572665764959
Report 2 cost is 521.8074312498701
Shared cost is 165.680247516731
completed in 34 seconds
setting Debug: true
in the config.yml will show a printed list of objects that do not match your specified tags
Please register an issue for feature requests
For ease of integration, please fork the integration branch and create a Pull Request
This repo uses pylint for style guide
Create basic cost-splitting functionalityAdd email functionality- Modify script to be run as a lambda