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
已提問 4 個月前檢視次數 257 次
2 個答案
2
已接受的答案

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
專家
已回答 4 個月前
profile picture
專家
已審閱 7 天前
profile pictureAWS
專家
已審閱 4 個月前
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
專家
Kallu
已回答 4 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南