This Claude skill provides a comprehensive framework and automated toolkit for AWS cost optimization and FinOps management. It enables users to significantly reduce cloud expenditures by implementing resource rightsizing, strategic savings plans, and automated cleanup of unused assets. By leveraging AWS Cost Explorer and Budgets, the skill helps maintain high performance and reliability while ensuring maximum ROI on cloud infrastructure investments.
Use Cases
Resource Rightsizing: Analyzing EC2 and RDS usage patterns to downsize over-provisioned instances and match resources to actual workload demands.
Automated Cleanup: Identifying and removing 'zombie' resources such as unattached EBS volumes, unused Elastic IPs, and stale snapshots to eliminate waste.
Storage Tiering Optimization: Implementing S3 lifecycle policies to automatically transition infrequently accessed data to lower-cost tiers like Glacier.
Commitment Strategy: Evaluating and purchasing AWS Savings Plans or Reserved Instances based on historical usage to secure discounts up to 72%.
Cost Governance: Setting up automated budget alerts and anomaly detection to prevent billing surprises and maintain financial accountability.
name
aws-cost-optimization
description
Optimize AWS costs through resource rightsizing and savings strategies
sasmp_version
"1.3.0"
bonded_agent
01-aws-fundamentals
bond_type
SECONDARY_BOND
AWS Cost Optimization Skill
Reduce AWS spending while maintaining performance and reliability.
Quick Reference
Attribute
Value
AWS Services
Cost Explorer, Budgets, Trusted Advisor
Complexity
Medium
Est. Time
30-60 min analysis
Prerequisites
Cost & Usage Reports access
Parameters
Required
Parameter
Type
Description
Validation
time_period
string
Analysis period
last_30_days, last_90_days
scope
array
Service types
["EC2", "RDS", "S3"]
Optional
Parameter
Type
Default
Description
savings_target
float
20
Target savings %
include_recommendations
bool
true
Include AWS recommendations
tag_filter
object
{}
Filter by tags
Cost Optimization Framework
┌─────────────────────────────────────────────────────────┐
│ COST OPTIMIZATION │
├─────────────────────────────────────────────────────────┤
│ 1. RIGHT SIZE │ Match resources to actual usage │
│ 2. SAVINGS PLANS │ Commit for 30-72% savings │
│ 3. SPOT/RESERVED │ Use discount pricing models │
│ 4. STORAGE TIER │ Move data to cheaper storage │
│ 5. CLEANUP │ Remove unused resources │
└─────────────────────────────────────────────────────────┘
Savings Strategies by Service
EC2 Optimization
Strategy
Effort
Savings
Right-sizing
Low
10-50%
Graviton (arm64)
Medium
40%
Spot Instances
Medium
60-90%
Savings Plans
Low
30-72%
Reserved Instances
Low
30-60%
Scheduled scaling
Medium
20-40%
RDS Optimization
Strategy
Effort
Savings
Right-sizing
Low
10-40%
Reserved Instances
Low
30-60%
Aurora Serverless
Medium
Variable
Multi-AZ review
Low
50% (if not needed)
Storage optimization
Low
10-30%
S3 Optimization
Strategy
Effort
Savings
Intelligent-Tiering
Low
20-40%
Lifecycle policies
Low
40-80%
Glacier transition
Low
80-95%
Cleanup old versions
Low
10-30%
Compression
Medium
20-50%
Implementation
Cost Analysis Query
# Get cost by service
aws ce get-cost-and-usage \
--time-period Start=2024-01-01,End=2024-01-31 \
--granularity MONTHLY \
--metrics BlendedCost \
--group-by Type=DIMENSION,Key=SERVICE
# Get rightsizing recommendations
aws ce get-rightsizing-recommendation \
--service EC2 \
--configuration '{
"RecommendationTarget": "SAME_INSTANCE_FAMILY",
"BenefitsConsidered": true
}'