πŸ’°

Cost Optimization

Budget alarms, cost allocation tagging, rightsizing scripts, and AWS spend control tooling.

πŸ’° Cost Optimization

AWS Budget Alerts Stack

CloudFormation: account-level and per-service budgets with SNS alerts at 50%, 80%, and 100% of monthly threshold.

πŸ’° Cost Optimization

EC2 Rightsizing Report Script

Python script using Cost Explorer and CloudWatch metrics to identify over-provisioned EC2 instances with specific downsizing recommendations.

πŸ’° Cost Optimization

Idle Resource Finder Script

Bash and AWS CLI script scanning all regions for unattached EBS volumes, unused Elastic IPs, stopped instances, and idle load balancers.

πŸ’° Cost Optimization

S3 Cost Analysis Script

Python script breaking down S3 costs per bucket: storage class distribution, request costs, data transfer, and lifecycle rule recommendations.

πŸ’° Cost Optimization

Reserved Instance Planner

Python script analyzing 90 days of EC2 On-Demand usage to recommend 1-year vs 3-year RI purchases with break-even calculations.

πŸ’° Cost Optimization

Dev Environment Auto-Scheduler

CloudFormation: Lambda and EventBridge rules that stop tagged EC2 and RDS resources outside business hours. Typically saves 65% on dev costs.

πŸ’° Cost Optimization

Cost Allocation Tagging Enforcer

CloudFormation: AWS Config rule with Lambda auto-remediation that tags untagged resources and sends a weekly digest of still-untagged resources.

πŸ’° Cost Optimization

Data Transfer Cost Analyzer

Python script using Cost and Usage Report data to identify top data transfer costs: inter-AZ, NAT Gateway, and CloudFront origin pull charges.

πŸ’° Cost Optimization

ECS Fargate Spot Migration Template

CloudFormation showing the exact capacity provider strategy for mixing Fargate and Fargate Spot with graceful spot interruption handling.

πŸ’° Cost Optimization

Monthly Cost Digest Lambda

CloudFormation: Lambda running on the 1st of each month emailing a formatted cost breakdown by service, region, and cost allocation tag.