GithubHelp home page GithubHelp logo

aws_billing's Introduction

aws_billing

AWS Detailed Billing CSV Parser & Reporting Tool

Setup

See the AWS docs for how to set up programmatic access to your billing.

Once this is done, a CSV file will be written (and updated) to the bucket you gave on the form.

To use tag-based costs breakdown you need to give a tag like e.g. "BILLING" with a relevant value to your EC2 instances, S3 buckets, ELBs etc.

Otherwise the script will just break down your costs per service and service type (e.g. ec2 * BoxUsage vs ec2 * EBS)

Dependencies

$ sudo pip install boto cyclone Twisted

Boto should be configured with an access/secret key pair that allows to read from your bucket that holds the detailed billing CSV file. E.g. check your /etc/boto.cfg for the Credentials section.

Usage

$ python -m aws_billing.server <account-id> <bucket-name>

Then point your browser to localhost:8888 to see the report. Parsing may be a bit long the first time so be patient. Subsequent calls will be cached for a few minutes though.

Contributing

I'm accepting pull requests !

Many aspects of the program can/should be improved :

  • UI (the program is writing raw html, a nice CSS would be great)
  • command line options (e.g. argparse)
  • parsing (sns topics names should be better recognized)
  • tagged vs non-tagged resources costs imputation (one should be able to cross the 2 tables)
  • daemon mode
  • etc

aws_billing's People

Contributors

oddskool avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aws_billing's Issues

previous month billing

Hi,
Currently it seems that you can only get the current month billing.
Is there a setting that enable the parsing of previous months?

Thanks
Nicolas

not working

Hi, I can't seen to get it to work, does it parse a billing that technically doesn't have expenses? I would have tough that at least it would list the services.

Am I doing something wrong?
localhost
terminal_and_s3

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.