AWS CLI for Monthly Invoice PDFs

0

I have a scenario in which I have to download monthly invoice PDFs through AWS CLI rather than logging into the AWS console and manually downloading them. Is there any possible way to achieve this?

Harshit
preguntada hace 4 meses257 visualizaciones
2 Respuestas
2
Respuesta aceptada

As mentioned above, you cannot automate that via an api: https://repost.aws/knowledge-center/download-pdf-invoice.

It depends on what you want to achieve, but what you could look is either reuse cost explorer api(https://docs.aws.amazon.com/cost-management/latest/userguide/ce-api.html) or send a copy of the invoice to an email https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/getting-viewing-bill.html#emailed-invoice (maybe with workmail) and fetch it as attachment

profile picture
EXPERTO
respondido hace 4 meses
profile picture
EXPERTO
revisado hace 7 días
profile pictureAWS
EXPERTO
revisado hace 4 meses
2

There is no API (or AWS CLI) for downloading invoice PDFs. You'd have to scrape it from the web page. Something like this https://github.com/iann0036/aws-bill-export

profile picture
EXPERTO
Kallu
respondido hace 4 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas