| name | cloud-cost-optimization |
| description | Use when analyzing or reducing cloud spend. Covers FinOps practices, right-sizing recommendations, reserved instance/savings plan analysis, cost allocation tagging, unused resource cleanup, spot instance strategies, and budget alerting. |
| user-invocable | false |
| allowed-tools | ["Read","Write","Bash","Grep"] |
Cloud Cost Optimization (FinOps)
Cost Allocation Strategy
Tags Required:
- Environment: dev | staging | production
- Project: project-name
- Team: team-name
- CostCenter: cost-center-code
- ManagedBy: terraform | manual | cdk
Reports:
- Cost by team (monthly)
- Cost by project (monthly)
- Cost by environment (monthly)
- Cost anomaly detection (daily)
Right-Sizing Checklist
aws cloudwatch get-metric-statistics \
--namespace AWS/EC2 --metric-name CPUUtilization \
--dimensions Name=InstanceId,Value=$INSTANCE_ID \
--start-time $(date -d '7 days ago' --iso-8601=seconds) \
--end-time $(date --iso-8601=seconds) \
--period 3600 --statistics Average
Savings Strategies
| Strategy | Savings | Commitment | Best For |
|---|
| Right-sizing | 10-30% | None | All workloads |
| Reserved Instances | 30-60% | 1-3 years | Steady-state |
| Savings Plans | 30-50% | 1-3 years | Flexible workloads |
| Spot Instances | 60-90% | None | Fault-tolerant |
| ARM instances | 20-40% | None | Compatible workloads |
| Auto-scaling | 20-40% | None | Variable workloads |
Best Practices
- Tag everything — Untagged resources = unattributable costs
- Budget alerts — Set thresholds at 50%, 80%, 100%
- Anomaly detection — Enable AWS Cost Anomaly Detection
- Regular reviews — Monthly cost review meetings
- Dev/staging savings — Schedule down during off-hours
- Storage lifecycle — Transition to cheaper storage tiers automatically
- Delete waste — Regular cleanup of unused resources
- FinOps culture — Team-level cost awareness and accountability