oddskool / aws_billing

AWS Detailed Billing CSV Parser & Reporting Tool
BSD 3-Clause "New" or "Revised" License
16 stars 7 forks source link

previous month billing #1

Open nicolasbriant opened 10 years ago

nicolasbriant commented 10 years ago

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

oddskool commented 10 years ago

The server has no such option yet. It's relatively easy to hack through, though.

The driver has a month parameter that defaults to the current month: https://github.com/oddskool/aws_billing/blob/master/aws_billing/driver.py#L14

Passing on the month from the WS call should be easy at this line: https://github.com/oddskool/aws_billing/blob/master/aws_billing/server.py#L32

HTH

nicolasbriant commented 10 years ago

Brilliant! thank you for the quick response. I will give it a try to display previous month. Thanks Nic