Lesson 3 of 3 Improving Existing Architectures

Finding and Removing Cost Waste in Running Estates

This lesson explains how to find and remove the waste that accumulates in every running estate, in the right order, which often saves a large share of the bill without re-architecture.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify common waste types and the tools that find them.
  • Explain the order of cost changes that avoids locking in waste.
  • Describe how budgets and anomaly detection keep savings.

Finding cost waste

A handful of waste types account for most unnecessary cost in a running estate, and each has a tool that finds it. Compute Optimizer and Cost Optimization Hub find over-provisioned instances by comparing their size with measured utilisation. Trusted Advisor and Cost Optimization Hub find idle resources, such as load balancers with no traffic and volumes attached to nothing. The Cost and Usage Report, grouped by environment tag, shows non-production resources running around the clock, and coverage reports show steady usage that no commitment covers.

Most of the fixes require no re-architecture: deleting, resizing, changing a volume type online or adding a schedule. The following table identifies the tool that reveals each type of waste and the appropriate fix.

WasteToolFix
Over-provisioned instancesCompute Optimizer, Cost Optimization HubRightsize; move to current generation and Graviton
Idle resourcesTrusted Advisor, Cost Optimization HubDelete idle load balancers, unattached EBS volumes, old snapshots, unused Elastic IPs
gp2 volumesCost Optimization HubModify to gp3 online, typically about 20% cheaper
Non-production running 24x7CUR by environment tagSchedules to stop outside working hours
Uncovered steady usageSavings Plans recommendations and coverage reportsSavings Plans for the baseline
Expensive data pathsCUR usage types, Flow LogsGateway endpoints, CloudFront, same-AZ placement
Old data in hot storageS3 Storage Lens, Storage Class AnalysisLifecycle rules, Intelligent-Tiering

Ordering the changes

Cost changes follow a logical order, and getting it wrong locks in waste. First, delete what is unused, such as idle load balancers, unattached volumes and forgotten environments, which saves money immediately and with no risk. Second, rightsize and modernise what remains, for example moving to current instance generations, Graviton and gp3. Only then are commitments, such as Savings Plans, bought for the reduced, steady baseline. Buying commitments first would commit the organisation to paying for oversized or unneeded capacity for one or three years.

The following diagram shows the order in which cost changes are made.

The order of cost improvements. First delete what is unused, which saves money at once with no risk. Then rightsize and modernise what remains. Only then buy commitments, sized to the reduced baseline. Finally keep the savings with budgets and Cost Anomaly Detection.
Buying commitments before rightsizing would lock in the waste that steps 1 and 2 remove.
Put in order

Order of cost changes

Exam skills 3.1.3 · 3.1.1

Put cost optimisation changes in the order that avoids wasted commitments.

Log in to try this activity Interactive activities are free with an account.

Keeping the savings

Savings erode unless something keeps watch. Budgets per team or cost category alert owners when their spending rises, and Cost Anomaly Detection catches unexpected increases within a day rather than at the end of the month.

Prevention complements detection: SCPs and approved infrastructure as code modules stop teams from launching oversized or unapproved resources in the first place. Regular reviews of Cost Optimization Hub recommendations turn cost optimisation into a routine rather than an occasional project.

Worked example

A 40% saving without re-architecture

A company's compute bill has grown to $100,000 a month. Leadership asks for savings without a re-architecture project. The architect works through the estate in order:

Step                                                        Saving (approx.)   Risk
----------------------------------------------------------  -----------------  ------
1. Delete 140 unattached EBS volumes, idle ALBs, old AMIs   $4,000 / month     None
2. Stop dev/test instances 19:00-07:00 and weekends         $12,000 / month    Low
3. Rightsize per Compute Optimizer (mostly one size down)   $9,000 / month     Low
4. Move suitable fleets to Graviton (m7g, c7g)              $7,000 / month     Medium (test builds)
5. gp2 -> gp3 for all volumes (online change)               $2,000 / month     None
6. Compute Savings Plan for the new, lower baseline         $8,000 / month     Commitment
                                                            ----------------
                                                            ~ $42,000 / month

Steps 1 to 5 shrink the baseline before step 6 commits to it. Had the company bought Savings Plans first, it would have committed to paying for capacity it then removed. Budgets and Cost Anomaly Detection keep the savings from eroding over time.

Check yourself

Why should resources be right-sized before commitments are bought?

Show answer

A commitment locks in a level of spend, so right-sizing first avoids committing to capacity that will later be removed.

Exam Tips

Remember for the exam

  • Delete unused resources and rightsize before buying commitments.
  • For rightsizing recommendations across EC2, EBS, Lambda, ECS and RDS, use Compute Optimizer.
  • gp2 to gp3 is an online change that usually reduces cost.
  • Graviton instances usually give better price performance for supported workloads.
  • Stop non-production resources outside working hours with schedules.
  • Use Budgets and Cost Anomaly Detection to keep savings from eroding.