Finding and Removing Waste in a Running Account
This lesson explains the other half of cost management: finding and removing waste in a running account. AWS provides tools that point out savings, and a few simple habits deliver most of the benefit.
Learning outcomes
After completing this lesson, you will be able to:
- Identify the practices that deliver most AWS savings, such as rightsizing and turning off idle resources.
- Identify the tools that recommend savings, such as AWS Compute Optimizer and Trusted Advisor.
- Describe good cost management habits.
Where savings usually come from
Most AWS savings come from a handful of practices. Rightsizing moves workloads to smaller or different instance types when resources are under-used, and turning things off stops development and test servers outside working hours, when nobody uses them. Removing idle resources, such as unattached EBS volumes, idle load balancers and unused Elastic IP addresses, stops paying for things that do nothing.
Commitments, through Savings Plans or Reserved Instances, cut the price of steady usage. Storage tiering moves old data to cheaper S3 storage classes automatically. Moving to managed and serverless services, such as Lambda, Fargate or DynamoDB on-demand, means paying for use rather than for idle servers. Moving to newer, more efficient hardware, such as current-generation and Graviton instances, gives more performance for the same price. The following table summarises each practice and the tools that support it.
| Practice | What it means | Tool |
|---|---|---|
| Rightsizing | Using smaller or different instance types when resources are under-used | AWS Compute Optimizer, Cost Explorer recommendations |
| Turning things off | Stopping development and test servers outside working hours | AWS Systems Manager, EventBridge Scheduler |
| Removing idle resources | Deleting unattached EBS volumes, idle load balancers and unused Elastic IP addresses | AWS Trusted Advisor cost checks |
| Commitments | Savings Plans or Reserved Instances for steady usage | Cost Explorer Savings Plans recommendations |
| Storage tiering | Moving old data to cheaper S3 classes | S3 Lifecycle, S3 Intelligent-Tiering |
| Managed and serverless services | Paying for use instead of idle servers | Lambda, Fargate, DynamoDB on-demand |
| Newer, efficient hardware | Moving to current-generation and Graviton instances | Compute Optimizer |
Savings practices
Tools that find savings
Several AWS tools look at how resources are used and point out savings, each with a different focus. AWS Compute Optimizer uses machine learning on actual usage to recommend better-sized EC2 instances, Auto Scaling groups, EBS volumes, Lambda functions and more. Cost Optimization Hub collects savings recommendations from across all accounts into one place, with the estimated savings of each. AWS Trusted Advisor includes cost checks that flag idle and under-used resources. AWS Cost Explorer shows spending trends and recommends rightsizing and Savings Plans. The following table summarises the tools.
| Tool | What it does |
|---|---|
| AWS Compute Optimizer | Uses machine learning on your usage to recommend better-sized EC2 instances, Auto Scaling groups, EBS volumes, Lambda functions and more |
| Cost Optimization Hub | Brings savings recommendations from across accounts into one place, with estimated savings |
| AWS Trusted Advisor | Flags idle and under-used resources among its cost optimisation checks |
| AWS Cost Explorer | Shows trends, rightsizing and Savings Plans recommendations |
Good habits
Cost management is most effective when it is practised consistently. The following list describes recommended habits.
- Tag resources so every cost has an owner.
- Set a budget with alerts for every account or project.
- Review recommendations regularly, for example monthly.
- Rightsize and remove waste before buying Savings Plans, so you do not commit to capacity you will remove.
Good cost habits
A monthly cost review
A company's AWS bill has crept up to $20,000 a month. In one review meeting, the team works through the tools. The following table shows what it finds and the saving from each action.
| Finding | Source | Action | Monthly saving |
|---|---|---|---|
| 15 test servers run all night and at weekends | Cost Explorer by Environment tag | Schedule them to stop out of hours | $2,500 |
| 8 instances average 5% CPU | Compute Optimizer | Move to smaller sizes | $1,800 |
| 40 unattached EBS volumes | Trusted Advisor | Snapshot if needed, then delete | $400 |
| Two years of logs in S3 Standard | Cost Explorer by service | Lifecycle rule to Glacier | $600 |
| Steady remaining usage | Savings Plans recommendation | Buy a 1-year Compute Savings Plan | $2,200 |
Together these cut the bill by about $7,500 a month, roughly 37%, without changing what the applications do. The order matters: the Savings Plan is bought last, for the smaller baseline that remains.
What is rightsizing?
Show answer
Changing resources to the smallest size that still meets the workload's needs, based on measured use.
Exam Tips
Remember for the exam
- For rightsizing recommendations based on usage, use AWS Compute Optimizer.
- To find idle resources such as unattached volumes, use Trusted Advisor cost checks.
- Stopping non-production resources outside working hours is a simple, large saving.
- Rightsize and remove waste before buying Savings Plans.
- For savings recommendations across many accounts in one place, use Cost Optimization Hub.