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

  1. 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, run aws sso login --profile <profile>. Look up the profile name in ~/.aws/config.

  2. Ask the user for the number of months and output directory.

  3. Build the Docker image from scripts/ in this skill directory if it doesn't exist:

    docker build -t aws-invoices <path-to-scripts/>
    
Related skills
Installs
11
First Seen
Apr 6, 2026