Cost Optimization
Budget alarms, cost allocation tagging, rightsizing scripts, and AWS spend control tooling.
Available Assets
AWS Budget Alerts Stack
CloudFormation: account-level and per-service budgets with SNS alerts at 50%, 80%, and 100% of monthly threshold.
EC2 Rightsizing Report Script
Python script using Cost Explorer and CloudWatch metrics to identify over-provisioned EC2 instances with specific downsizing recommendations.
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.
S3 Cost Analysis Script
Python script breaking down S3 costs per bucket: storage class distribution, request costs, data transfer, and lifecycle rule recommendations.
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.
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 Allocation Tagging Enforcer
CloudFormation: AWS Config rule with Lambda auto-remediation that tags untagged resources and sends a weekly digest of still-untagged resources.
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.
ECS Fargate Spot Migration Template
CloudFormation showing the exact capacity provider strategy for mixing Fargate and Fargate Spot with graceful spot interruption handling.
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.