Skip to main content

AWS Cloud Cost Auditor & FinOps Toolkit

A zero-agent, production-grade CLI suite designed to audit AWS infrastructure for orphaned resources, calculate monthly financial drag, synthesize remediation bash scripts, and generate branded executive PDF showbacks.


Prerequisites

  • Python 3.9+
  • AWS CLI configured with appropriate permissions (aws configure or standard AWS environment variables: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION).

Installation

Free Lite CLI (PyPI)

Install the open-source single-account auditor directly from PyPI:

pip install aws-finops-auditor
aws-finops-auditor --file sample_aws_data.csv

The --file example uses sample_aws_data.csv from this repository — download that file first, or run aws-finops-auditor --live to audit your configured AWS account directly.

Reusable GitHub Action (CI/CD Cost Gate)

Run automated AWS FinOps waste checks on pull requests or schedules directly in GitHub Actions:

- name: Run AWS FinOps Cost Audit
  uses: Ace-FinOps-Enterprise/aws-finops-auditor-action@v1
  with:
    gumroad_license_key: ${{ secrets.GUMROAD_LICENSE_KEY }}
    fail-on-waste: '100'

fail-on-waste is a Pro feature: it requires the Pro subscription ($19/month or $228/yr) and a valid Gumroad license key passed as gumroad_license_key.

Practitioner ($149/yr) & Agency ($999/yr) Annual Tiers

Extract your purchased archive from Gumroad, navigate into the directory, and install dependencies:

pip install -r requirements.txt

1. Practitioner Quickstart (Single-Account Audits)

Included in Practitioner & Agency tiers (infrastructure_auditor.py)

Audit the active AWS account configured in your local environment.

Run Audit Against Live AWS Infrastructure

python infrastructure_auditor.py --live --compliance --remediate

The --compliance and --remediate flags require a Gumroad license key: set the GUMROAD_LICENSE_KEY environment variable before running.

Run in Demo / Offline Mode (Using Sample Dataset)

python infrastructure_auditor.py --file sample_aws_data.csv --compliance --remediate

Outputs Generated:

  • Terminal Summary: Categorized breakdown of orphaned EBS volumes, low-utilization compute, and unattached Elastic IPs.
  • compliance_audit_export.csv: Full resource inventory with showback cost tags and compliance control mappings (SOC2 CC6.6, ISO27001 A.10.1.1).
  • remediate_anomalies.sh: Ready-to-review bash script with safe CLI commands to purge waste.

2. Enterprise & Agency Quickstart (Multi-Account AWS Organizations)

Included in the Consultancy & Agency Pack (enterprise_audit.py)

Scan multiple member accounts across an entire AWS Organization via STS role assumption and generate executive PDF reports.

Cross-Account IAM Role Setup

Deploy org-access-role.yaml via AWS CloudFormation StackSets across your target member accounts:

  • Default Role Name: OrganizationAccountAccessRole
  • Trust Relationship: Your primary management/auditing account ID.

Run Full Multi-Account Audit & Executive PDF Generation

python enterprise_audit.py --license-key YOUR_GUMROAD_KEY --report --remediate

Advanced Enterprise CLI Flags

Flag Description Default
--license-key Gumroad enterprise license key for verification Required
--report Compiles client-ready executive PDF report False
--report-out Custom output file path for the PDF deliverable AWS_FinOps_Executive_Report.pdf
--remediate Generates remediate_anomalies.sh purge script False
--org-id Custom company/client name for PDF header branding AWS Organization Root
--regions Comma-separated list of AWS regions to scan us-east-1,us-east-2,us-west-2
--role-name Cross-account IAM role to assume via STS OrganizationAccountAccessRole
--demo Populates report from sample_aws_data.csv if live accounts show $0 waste False

Example: Multi-Region Scan with Custom Client Branding

python enterprise_audit.py \
  --license-key YOUR_GUMROAD_KEY \
  --org-id "Acme Corp Infrastructure" \
  --regions "us-east-1,us-west-2,eu-west-1" \
  --report \
  --report-out "Acme_FinOps_Q4_Audit.pdf" \
  --remediate

3. Executing Remediation Safely

Every audit that includes --remediate generates an idempotent bash script (remediate_anomalies.sh) with set -euo pipefail safety controls:

  1. Inspect before executing:
    cat remediate_anomalies.sh
    # On Windows PowerShell:
    Get-Content remediate_anomalies.sh
    
  2. Execute remediation purge:
    chmod +x remediate_anomalies.sh
    ./remediate_anomalies.sh
    

Non-destructive actions (like upgrading deprecated RDS engines) are prefixed with # as operational warnings and require manual review.


4. AWS Marketplace Container Deployment (Enterprise)

Enterprise buyers procuring through AWS Marketplace can deploy the containerized multi-account scanner directly into ECS Fargate using aws-marketplace-cloudformation.yaml:

docker build -t aws-finops-auditor-enterprise:latest .
docker run --rm -e AWS_REGION=us-east-1 aws-finops-auditor-enterprise:latest \
  --aws-marketplace --report --remediate --s3-bucket your-finops-audit-bucket

Support & Upgrades

  • Commercial Licenses & Add-ons: Gumroad Product Portal
  • Issues & Support: Contact support via your Gumroad receipt portal or primary vendor email.

Metadata

Release files for aws-finops-auditor 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-finops-auditor 1.2.1
File Size Uploaded Provenance Actions
aws_finops_auditor-1.2.1.tar.gz 23.0 kB Without provenance Details for aws_finops_auditor-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aws-finops-auditor 1.2.1
File Interpreter ABI Platform Actions
aws_finops_auditor-1.2.1-py3-none-any.whl Python 3 none any Details for aws_finops_auditor-1.2.1-py3-none-any.whl

Total release size: 48.5 kB

Release files / aws_finops_auditor-1.2.1.tar.gz

Download URL aws_finops_auditor-1.2.1.tar.gz
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9a432a0bb13bbf53ee6a240c48e26c08af8f0f600713de7147e4c6e6cd68501d
BLAKE2b-256 checksum
How to use checksums
38355a332c4e0e75ddb30d94f916270dad38c35d436a9bddb627e70ada2cf596
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / aws_finops_auditor-1.2.1-py3-none-any.whl

Download URL aws_finops_auditor-1.2.1-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c92f853a822448956ad6168052866daa584176ba8e0463cba08bf6b570cc309
BLAKE2b-256 checksum
How to use checksums
bef051fcbe08ff7185f7c870f55a7e4e7f1de5fba273e245e97710b2750d0f38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Security for aws-finops-auditor 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page