aws-cost-optimizer
Analyze and optimize AWS costs with recommendations for Reserved Instances, right-sizing, and resource cleanup. Use when reducing AWS spending, analyzing…

Установить aws-cost-optimizer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
AWS Cost Optimizer
Analyze and optimize AWS costs with actionable recommendations.
Quick Start
Review Cost Explorer, identify top costs, right-size instances, use Reserved Instances, delete unused resources.
Instructions
Cost Analysis Process
- Identify cost drivers
- Analyze usage patterns
- Recommend optimizations
- Estimate savings
- Implement changes
Using AWS Cost Explorer
Access Cost Explorer:
- AWS Console → Billing → Cost Explorer
- View costs by service, region, tag
Key metrics to check:
- Monthly costs by service
- Cost trends over time
- Unused or underutilized resources
- Data transfer costs
EC2 Cost Optimization
Right-sizing instances:
Check utilization:
# Get CloudWatch metrics
aws cloudwatch get-metric-statistics \
--namespace AWS/EC2 \
--metric-name CPUUtilization \
--dimensions Name=InstanceId,Value=i-1234567890abcdef0 \
--start-time 2024-01-01T00:00:00Z \
--end-time 2024-01-31T23:59:59Z \
--period 3600 \
--statistics Average
Recommendations:
- CPU < 20%: Downsize instance type
- CPU > 80%: Upsize or add instances
- Memory < 50%: Consider smaller instance
Reserved Instances:
- 1-year: ~30-40% savings
- 3-year: ~50-70% savings
- Best for predictable workloads
Savings Plans:
- More flexible than Reserved Instances
- Commit to $/hour usage
- Apply across instance families
Spot Instances:
- Up to 90% savings
- For fault-tolerant workloads
- Batch processing, CI/CD, testing
Stop unused instances:
# Find stopped instances
aws ec2 describe-instances \
--filters "Name=instance-state-name,Values=stopped" \
--query 'Reservations[].Instances[].[InstanceId,Tags[?Key==`Name`].Value|[0]]'
# Terminate if not needed
aws ec2 terminate-instances --instance-ids i-1234567890abcdef0
S3 Cost Optimization
Lifecycle policies:
{
"Rules": [{
"Id": "Archive old data",
"Status": "Enabled",
"Transitions": [
{
"Days": 30,
"StorageClass": "STANDARD_IA"
},
{
"Days": 90,
"StorageClass": "GLACIER"
}
],
"Expiration": {
"Days": 365
}
}]
}
Storage classes:
- Standard: Frequent access
- Standard-IA: Infrequent access (30+ days)
- Glacier: Archive (90+ days)
- Glacier Deep Archive: Long-term archive
Delete incomplete multipart uploads:
aws s3api list-multipart-uploads --bucket my-bucket
# Set lifecycle rule to abort after 7 days
Analyze storage:
# Get bucket size
aws s3 ls s3://my-bucket --recursive --summarize
RDS Cost Optimization
Right-size databases:
- Check CPU, memory, IOPS utilization
- Downsize if consistently low
- Use Aurora Serverless for variable workloads
Reserved Instances:
- 1-year: ~30-40% savings
- 3-year: ~50-60% savings
Stop dev/test databases:
# Stop RDS instance
aws rds stop-db-instance --db-instance-identifier mydb
# Start when needed
aws rds start-db-instance --db-instance-identifier mydb
Delete old snapshots:
# List snapshots
aws rds describe-db-snapshots --query 'DBSnapshots[?SnapshotCreateTime<`2023-01-01`]'
# Delete old snapshots
aws rds delete-db-snapshot --db-snapshot-identifier snapshot-id
Data Transfer Costs
Reduce data transfer:
- Use CloudFront for content delivery
- Keep data in same region
- Use VPC endpoints for AWS services
- Compress data before transfer
VPC endpoints:
# Create S3 VPC endpoint (no data transfer charges)
aws ec2 create-vpc-endpoint \
--vpc-id vpc-12345678 \
--service-name com.amazonaws.us-east-1.s3 \
--route-table-ids rtb-12345678
EBS Cost Optimization
Delete unattached volumes:
# Find unattached volumes
aws ec2 describe-volumes \
--filters "Name=status,Values=available" \
--query 'Volumes[].[VolumeId,Size,VolumeType]'
# Delete if not needed
aws ec2 delete-volume --volume-id vol-1234567890abcdef0
Delete old snapshots:
# List old snapshots
aws ec2 describe-snapshots --owner-ids self \
--query 'Snapshots[?StartTime<`2023-01-01`]'
# Delete
aws ec2 delete-snapshot --snapshot-id snap-1234567890abcdef0
Use gp3 instead of gp2:
- gp3 is 20% cheaper
- Better performance
- Migrate existing volumes
Lambda Cost Optimization
Optimize memory allocation:
- More memory = faster execution = lower cost
- Test different memory settings
- Use AWS Lambda Power Tuning tool
Reduce cold starts:
- Use provisioned concurrency (if needed)
- Keep functions warm with scheduled events
- Minimize dependencies
Monitor invocations:
# Get Lambda metrics
aws cloudwatch get-metric-statistics \
--namespace AWS/Lambda \
--metric-name Invocations \
--dimensions Name=FunctionName,Value=my-function \
--start-time 2024-01-01T00:00:00Z \
--end-time 2024-01-31T23:59:59Z \
--period 86400 \
--statistics Sum
CloudWatch Costs
Reduce log retention: ```b
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл aws-cost-optimizer?
Analyze and optimize AWS costs with recommendations for Reserved Instances, right-sizing, and resource cleanup. Use when reducing AWS spending, analyzing costs, or optimizing cloud infrastructure expenses.
Как установить скилл aws-cost-optimizer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл aws-cost-optimizer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
