aws-invoice-download
Installation
SKILL.md
AWS Invoice Download
This is a reference pattern. Learn from the approach, adapt to your context — don't copy verbatim.
Problem: AWS management accounts see consolidated invoices that duplicate member account invoices, and downloading them manually per account/month is tedious.
Solution: Dockerized Python script that iterates all org accounts, deduplicates by invoice ID, and organizes PDFs by billing period.
Steps
-
Ensure the user has an active AWS SSO session for their organization management account. Check with
aws sts get-caller-identity --profile <profile>. If expired, runaws sso login --profile <profile>. Look up the profile name in~/.aws/config. -
Ask the user for the number of months and output directory.