All skills
aws avatar

/aws-billing-and-cost-management

@b33847d

Analyze AWS costs, find savings, manage budgets, evaluate Savings Plans and Reserved Instances, right-size EC2/Lambda/RDS/EBS with Compute Optimizer, look up service pricing, query CUR with Athena, detect cost anomalies, scope costs to billing views, and monitor Free Tier usage. Triggers on: AWS bill, cost analysis, reduce spend, savings plan, reserved instance, right-size, budget alert, cost optimization, pricing, free tier, cost anomaly, CUR, cost audit, billing view, billing view ARN.

Use this Skill: https://skilld.dev/gh/aws/agent-toolkit-for-aws/aws-billing-and-cost-management

This session only. Nothing lands on disk.

referencesservice-optimization.md

≈757 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Per-Service Cost Optimization

Pricing note: All prices shown are us-east-1 approximate as of early 2026. Prices vary by region and may change. Always verify current pricing via the Price List API before reporting to users.

Quick wins that don't require commitment purchases. Prioritize by estimated savings.

S3: Storage Class Optimization

Strategy Savings When
Intelligent-Tiering Auto-optimized Unknown access patterns, objects ≥128KB
Lifecycle to S3-IA ~45% storage Known infrequent access after 30+ days
Lifecycle to Glacier IR ~68% storage Archive after 90+ days, retrieval in minutes
Lifecycle to Deep Archive ~95% storage Compliance retention, 12+ hour retrieval OK

Gotchas: Objects <128KB NOT auto-tiered in IT. Minimum storage durations: S3-IA 30 days, Glacier IR 90 days, Deep Archive 180 days — early deletion incurs prorated charge. Always add NoncurrentVersionExpiration — old versions accumulate silently.

Lambda: Memory and Architecture

Strategy Savings Effort
Switch to arm64 (Graviton) ~20% cost Low — config change
Right-size memory 10-50% Medium — use Power Tuning
SnapStart (Java/Python/.NET) Eliminates provisioned concurrency cost Low

Gotchas: Reserved concurrency (free) ≠ Provisioned concurrency (paid). 1,769 MB = 1 full vCPU — more memory = more CPU = potentially lower total cost.

NAT Gateway: VPC Endpoints

NAT Gateway: $0.045/hr ($32/month) + ~$0.045/GB. Often the #1 surprise cost.

Always create free gateway endpoints for S3 and DynamoDB:

aws ec2 create-vpc-endpoint --vpc-id vpc-123abc \
  --service-name com.amazonaws.<REGION>.s3 --route-table-ids rtb-123abc

Interface endpoints cost ~$0.01/hr/AZ + ~$0.01/GB — cheaper than NAT only for high-traffic services. Do the math before adding many interface endpoints.

CloudWatch: Log Retention

Default retention is "Never expire" — logs accumulate at ~$0.03/GB/month.

# Find log groups without retention
aws logs describe-log-groups \
  --query "logGroups[?!retentionInDays].{Name:logGroupName,StoredBytes:storedBytes}" --output table

Gotchas: Log class cannot be changed after creation. Infrequent Access class does NOT support metric filters, subscription filters, or live tail. Custom metrics: each unique dimension combination is a separate metric (~$0.30/metric/month in us-east-1).

DynamoDB: Capacity Mode

On-demand is ~6x more expensive per request than provisioned at steady state. Start on-demand for new tables, switch to provisioned once traffic patterns are known. Can switch modes once per 24 hours. Database Savings Plans (up to 35%) now apply to DynamoDB on-demand.

ECS/EKS: Fargate Spot

Fargate Spot: up to 70% discount, 2-minute interruption warning. Always have Fargate fallback with base=1. EKS control plane costs $0.10/hr ($73/month) regardless of node count — not covered by any SP.

Source: SKILL.md on GitHub

No alerts17d3 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    This skill provides comprehensive instructions for analyzing and optimizing AWS costs. It incorporates security-conscious patterns, such as recommending sandboxed execution via the AWS MCP server and requiring deterministic Python scripts for all mathematical calculations to ensure data integrity and accuracy.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

Signed by skilld at b33847d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
metadata
{
  "version": "1"
}

README badge

README badge for aws/agent-toolkit-for-aws/aws-billing-and-cost-management