AWS cost optimization
What are the five pillars of cost optimization in AWS?
The "five pillars of cost optimization in AWS" refers to 5 design principles or 5 best practice areas, not separate pillars: AWS Well-Architected has 6 pillars, and Cost Optimization is one of them. Costbrake handles the expenditure and usage awareness part for small teams, alerting on AWS spikes, budget thresholds and new charges.
What AWS means by pillars
The AWS Well-Architected Framework has these pillars:
- Operational Excellence
- Security
- Reliability
- Performance Efficiency
- Cost Optimization
- Sustainability
Inside Cost Optimization, AWS describes design principles and best practice areas. They're different lists. The principles guide your decisions; the areas organize the work.
AWS defines a cost-optimized workload as one that fully uses its resources, delivers its outcome at the lowest possible price and meets its functional requirements. That last part matters. Cutting resources until the application no longer does its job isn't the target.
The Cost Optimization Pillar whitepaper was published on June 27, 2024. It provides guidance and references, not implementation details or architectural patterns.
The five design principles
These are the names from the AWS design principles, with a practical action for each.
| Design principle | What it means | Example action |
|---|---|---|
| Implement cloud financial management | Put time and resources into learning how to manage cloud usage and costs. | Assign someone to review workload spending and make time for that work. |
| Adopt a consumption model | Pay for the computing resources you consume, and adjust usage to business needs. | Stop development and test resources when nobody needs them. |
| Measure overall efficiency | Measure what the workload delivers alongside what delivery costs. | Compare workload cost with its business output before and after a change. |
| Stop spending money on undifferentiated heavy lifting | Let AWS handle infrastructure operations, including operating systems and applications through managed services. | Evaluate a managed service instead of managing the operating system and application yourself. |
| Analyze and attribute expenditure | Identify workload costs and connect them to owners or revenue streams. | Assign a workload's spending to its owner and review that cost with them. |
The consumption example has concrete numbers behind it. AWS describes development and test environments used for eight hours a day during the work week: running for 40 hours rather than 168 hours offers potential savings of 75% when those resources are stopped outside use.
Potential, not a promise.
For efficiency, keep both sides of the comparison. AWS asks you to measure business output and delivery cost, including changes in output, functionality and cost. A smaller invoice alone doesn't describe all of that.
And attribution isn't just splitting the bill. AWS connects it to measuring return on investment and giving workload owners a chance to reduce their resource costs.
The five best practice areas
The best practice areas cover the work you'll do to apply those principles. Use them as a review checklist.
Practice Cloud Financial Management
Build the knowledge, processes and resources needed to manage cloud costs. For a small team, a concrete starting point is naming the person responsible for the cost review and setting aside time to do it. If you're working alone, that's you.
Expenditure and usage awareness
Know what you're spending and what resources you're using. For example, review a workload's cost alongside its usage and identify who owns it, rather than leaving it as an unexplained part of the account bill.
Cost-effective resources
Choose resources that meet the workload's requirements at the lowest price point. Benchmark a deployment before choosing its resource capacity, rather than adding capacity without measurement. AWS warns that haste and overcompensation can produce over-provisioned deployments.
Manage demand and supplying resources
Match resources to what the workload needs. A concrete example is stopping development and test resources outside their working hours, then making them available when they're needed again.
Optimize over time
Return to cost decisions after the initial deployment. If you temporarily over-provision during a move from on-premises infrastructure, revisit that deployment and optimize it afterwards. AWS explicitly recognizes that temporary choice.
How to apply the cost optimization pillar
Start with a workload. Who owns its bill?
Record its cost, the business output it delivers and the functional requirements it must keep meeting. Then work through the principles and areas above, choosing a specific change you can measure, such as stopping unused development resources or benchmarking an over-provisioned deployment.
Compare cost and output after the change (not just the account total). Keep the workload's requirements in the review.
You don't have to optimize everything before shipping. AWS recognizes that getting to market, delivering a feature or meeting a deadline can take priority over upfront cost work. Make that decision explicitly, then return to the deployment rather than treating its initial resource choices as permanent.
Where Costbrake fits
Costbrake adds spending monitoring across cloud, AI and SaaS providers. For AWS, it reads Cost Explorer billed costs, which can be up to a day behind, alongside live CloudWatch-based estimates.
AWS charges $0.01 per Cost Explorer API request. Costbrake's regular Cost Explorer reads and daily ledger sync total about 210 requests, roughly $2 a month on your AWS bill.
Its optional brakes require an admin to click and confirm. They never run automatically. An AWS brake can stop an EC2 instance, for example; its EBS volumes stay and still bill. Brakes record the prior state, support undo and don't delete resources.
See agent setup to connect AWS, or Costbrake pricing for plans.
Questions and answers
What are the 6 pillars of the AWS Well-Architected Framework?
They're Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization and Sustainability. Cost Optimization is a single pillar within that framework.
What are the design principles of cost optimization?
They're Implement cloud financial management, Adopt a consumption model, Measure overall efficiency, Stop spending money on undifferentiated heavy lifting, and Analyze and attribute expenditure.
What is Cloud Financial Management in AWS?
It's the capability to manage cloud technology usage and costs through knowledge, resources, programs and processes. AWS says organizations need to dedicate time and resources to building it.
How do I apply the cost optimization pillar?
Identify a workload's owner, costs, output and functional requirements, then review it against the design principles and best practice areas. Make a measurable change and compare its cost and output afterwards.
Does stopping an EC2 instance stop all its charges?
No. Stopping the instance ends its compute billing, but its EBS volumes remain and still bill. See How do I stop AWS charges? for more.
Sources
Updated