The Seven Types of Cloud Waste
- Idle resources: Instances, databases, load balancers running with zero or near-zero traffic
- Over-provisioning: Resources sized for peak load that never materializes
- Zombie workloads: Old projects, feature branches, experiments never cleaned up
- Unused commitments: Reserved Instances or Savings Plans not matched to any usage
- Expensive storage tiers: Old data left in hot storage instead of tiered to cheaper options
- Data transfer inefficiency: Cross-AZ or cross-region traffic that could be avoided
- Suboptimal licensing: BYOL opportunities missed, over-licensed databases
Finding Idle Resources
This read-only example requires Bash, Python 3 and an authenticated AWS CLI with permission to read CloudWatch metrics. Set AWS_REGION and INSTANCE_ID for one existing instance. It requests the previous 14 days in UTC.
The CPU output contains hourly averages for the selected instance, sorted by timestamp. It is neither a fleet-wide idle-instance list nor a single 14-day average. Missing data is not zero utilization. Review peaks, workload needs and other signals before changing a resource; this example applies no idle threshold. The EBS and Elastic IP commands list inventory candidates, not confirmed waste. See the AWS CLI metric reference.
Over-Provisioned Resources
Review optimization recommendations alongside workload utilization, peaks and planned demand. Confirm ownership and dependencies, then test candidate sizing changes with monitoring and a rollback path. Recommendations do not establish a typical oversized share or guaranteed reduction for every environment.
For RDS: check the "FreeStorageSpace" and "CPUUtilization" metrics. A db.r5.2xlarge running at 8% CPU for 30 days is a strong right-sizing candidate. CloudWatch's Database Insights (for Aurora) provides query-level analysis for performance vs cost tradeoffs.
Unused Reserved Instances and Savings Plans
An RI with 0% utilization is pure waste — you pay for capacity you're not using. Check RI utilization in AWS Cost Explorer under "Reservation Utilization Reports." Any RI below 80% utilization for 2+ months should be sold on the RI Marketplace (Standard RIs) or exchanged for a better-matching Convertible RI.
Automating Waste Prevention
Tagging enforcement: Resources without tags get automatically flagged and owned by a "waste" cost bucket that makes the cost visible to leadership.
Operating schedules: Review whether non-production workloads can stop outside required hours. Confirm dependencies, restart behavior, retained resources and commitments, then measure the effect on the actual bill.
Automated cleanup policies: Lambda function that terminates EC2 instances with the "Temporary" tag after 7 days. Deletes EBS snapshots older than 90 days. Removes unused AMIs.
Harness AutoStopping: Stops eligible resources after the configured idle threshold and restarts them on demand. Startup is not instantaneous: allow for resource warm-up and dependency configuration. Best for dev/test environments accessible via browser or SSH.