Skip to content

AWS Cost Optimizer

Audits your AWS resources and IaC files for savings, then opens GitHub issues for each fix

Stars
40,703
Licence
MIT
Files
1 file

What it does

When installed, the agent follows a multi-step workflow to find ways to cut your Amazon Web Services bill. It reads your infrastructure-as-code files (such as Terraform or CloudFormation), queries your AWS account through the AWS CLI for resource lists, usage metrics and cost data, and compares them against cost-saving patterns like right-sizing, Graviton or Savings Plans, and S3 lifecycle rules. After showing you a summary and asking for approval, it creates one GitHub issue per optimization plus a coordinating EPIC issue.

Great for

  • Engineering teams that run workloads on AWS and want a structured monthly cost review
  • Developers who keep infrastructure as code in a GitHub repository and want tracked follow-up tasks
  • Teams comfortable granting an AI agent read access to their AWS account via the CLI

Skip it if

  • Accounts where the AWS CLI credentials have broad write or billing permissions, since the agent runs read commands against live resources and a mistake in setup could expose more than intended
  • Non-AWS clouds or fully serverless setups with no IaC files, because the workflow stops if no IaC files are found
  • Production changes made without review, since the skill recommends changes and the validation steps still need a human to test them

Try asking

  • “Analyze the AWS resources in this repo and suggest cost savings for the us-east-1 region”
  • “Find unattached EBS volumes and gp2 volumes we can convert to gp3”
  • “Review our Lambda functions for oversized memory settings and create GitHub issues for the savings”
  • “Summarize our potential monthly AWS savings before creating any issues”
Step-by-step guide: how to use AWS Cost OptimizerInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the MIT licence and an attribution note.

    aws-cost-optimize.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip aws-cost-optimize.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip aws-cost-optimize.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Use read-only IAM credentials for the analysis so the agent cannot change resources.
  • Review the summary in Step 5 carefully and reply no if the recommended savings or risk levels look wrong before any issues are created.
  • Scope the analysis to one region or one IaC folder first to keep the metrics queries manageable.

What's inside

  • SKILL.md

Redistributed unmodified from github/awesome-copilot under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.