Downloads AWS bills from the console programmatically.
Click the above link to deploy the stack to your environment.
If you prefer, you can also manually upsert the template.yml stack from source.
Currently, the only tested region is us-east-1
.
The stack outputs a base URL you can use to make calls. The following calls can be made:
Show complete bill contents
https://<baseurl>/completebill.json?month=3&year=2020
Show the invoice list
https://<baseurl>/invoicelist.json?month=3&year=2020
Show linked account bills
https://<baseurl>/linkedaccountbillsummary.json?month=3&year=2020
Generate and download an invoice
https://<baseurl>/generate.json?invoiceNumber=12345&invoiceGroupId=12345"
https://<baseurl>/download.pdf?invoiceNumber=12345&invoiceGroupId=12345"
- Authentication and/or authorization is anonymous by default, and a basic IAM authentication/authorization is available via the
AuthorizationType
. Configuring this to match your environment is left as an exercise for you. - You have to keep puppeteer-core and @sparticuz/chromium in sync if you update packages. See the sparticuz/chromium readme for instructions.