Bill tháng 1: $200. Tháng 3: $580. Không phải app scale — resource bị bỏ quên, instance quá to, data sai storage class. Mình liệt kê quick win giúp bạn giảm 30-50% bill ngay tháng sau.
| Quick Win | Tiết kiệm |
|---|---|
| Compute Savings Plans (No Upfront) | 30-50% compute |
| S3 Intelligent-Tiering / Lifecycle | 40-80% storage |
| Right-size Lambda memory (Compute Optimizer) | 20-40% Lambda |
| Xóa unattached EBS volumes | $0.08/GB-month |
| Release unused Elastic IPs | $3.6/IP-month |
| Xóa stale CloudWatch log groups | Variable |
| Tắt NAT Gateway không dùng | $32/tháng |
Chạy các command này để biết ngay bạn đang tốn tiền vào đâu.
aws savingsplans describe-savings-plans-recommendations \
--savings-plans-type COMPUTE --look-back-period-in-days THIRTY_DAYS --payment-option NO_UPFRONT
aws ce create-anomaly-monitor --anomaly-monitor '{
"MonitorName": "daily-spike", "MonitorType": "DIMENSIONAL", "MonitorDimension": "SERVICE"
}'
aws compute-optimizer get-lambda-function-recommendations \
--query 'lambdaFunctionRecommendations[*].[functionArn,currentMemorySize,memorySizeRecommendationOptions[0].memorySize]'
Bài sau: [Phần 39: Well-Architected Framework](/posts/aws/39-well-architected-framework-6-pillars/)