aws-cost-optimize

Analyzes AWS resources and IaC files to generate cost optimization recommendations as GitHub issues.

38.5k|4.9k|Updated Jun 11, 2025
One-click install
npx skills add https://github.com/github/awesome-copilot --skill aws-cost-optimize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-cost-optimize
Source: https://github.com/github/awesome-copilot/tree/main/skills/aws-cost-optimize
Command: npx skills add https://github.com/github/awesome-copilot --skill aws-cost-optimize

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cloud bills grow silently as over-provisioned EC2 instances, idle Lambda memory, gp2 volumes, and redundant NAT Gateways accumulate. This Skill audits your AWS environment against cost optimization best practices and turns findings into trackable GitHub issues instead of a forgotten report.

Core Features & Use Cases

  • Resource Discovery: Scans EC2, RDS, Lambda, ECS, S3, ElastiCache, NAT Gateways, and Load Balancers via AWS CLI, plus Terraform, CloudFormation, SAM, and CDK files.
  • Usage-Based Analysis: Pulls CloudWatch metrics and Cost Explorer data to right-size recommendations with real utilization evidence.
  • Prioritized Recommendations: Scores each opportunity by savings, risk, and effort, then creates individual GitHub issues plus an EPIC tracking issue.
  • Use Case: A team notices their AWS bill doubled last quarter. Run this Skill to identify that dev RDS instances are oversized and S3 buckets lack lifecycle policies, then get labeled GitHub issues with implementation commands for each fix.

Quick Start

Analyze my AWS account and IaC files for cost optimization opportunities and create GitHub issues for each finding.

Frequently Asked Questions about aws-cost-optimize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find AWS cost optimization opportunities in my account?

Run this Skill with AWS CLI configured to scan EC2, RDS, Lambda, S3, and other resources across regions. It compares configurations against CloudWatch utilization metrics and AWS best practices, then produces prioritized savings recommendations.

How to right-size EC2 instances based on CPU utilization?

The Skill queries CloudWatch for 7-day average CPU utilization per instance. Instances averaging below 20% are flagged for downsizing, with recommendations to convert On-Demand to Savings Plans or migrate to Graviton ARM instances.

Does this work with Terraform and CloudFormation files?

Yes, it detects Terraform (.tf), CloudFormation/SAM (YAML/JSON), and CDK projects as the source of truth for intended configurations. If no IaC files exist, it stops and reports rather than analyzing application code.

What permissions are needed to run an AWS cost analysis?

You need AWS CLI authenticated with read-only IAM permissions for EC2, RDS, Lambda, S3, CloudWatch, and Cost Explorer, plus a configured GitHub MCP server. The Skill lists required permissions if access is insufficient.

Why does the analysis fail when Cost Explorer is not enabled?

Cost Explorer must be activated in the AWS Console before the CLI can query historical spending data. The Skill detects this error and guides you to enable it, since actual cost validation depends on that API.