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?

2 Antworten
2
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 4 Monaten
profile picture
EXPERTE
überprüft vor 7 Tagen
profile pictureAWS
EXPERTE
überprüft vor 4 Monaten
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
EXPERTE
Kallu
beantwortet vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen