Organizations are moving more applications and services to Infrastructure as a Service, Platform as a Service, and Software as a Service models. A sizable part of IT budgets is diverted to cloud providers, and understanding your cloud bill and budget on cloud providers like Amazon Web Services is becoming a prime concern. AWS cost optimization has become a discipline of its own with specialized tools, economic models and cost reduction best practices.
In this article:
Here are key benefits of cloud costs optimization:
The AWS Well Architected Framework recommends five design principles for AWS cost optimization. Here is a summary of these principles:
The basic AWS pricing model is on-demand, with pricing for services based on actual usage, billed per hour or per second (supported for some services). It is highly flexible, but also the most expensive option. Many organizations start with on-demand pricing to understand their cloud needs and later switch to another model.
AWS Savings Plans offers a flexible pricing model with compute usage savings of up to 72%. It lets you reduce costs for AWS usage, including for AWS Lambda, AWS Fargate, and Amazon EC2 instances. You benefit from discounted prices regardless of instance size, Region, instance family, operating system, or tenancy.
AWS Cost Explorer provides recommendations to help you optimize costs - ensure you select one-year compute options without upfront costs. When you sign up for Savings Plans, AWS automatically charges your compute usage at the lower Savings Plans rates.
Amazon lets you reserve instances for a period of 1-3 years and receive discounts of up to 75%. In a reserved instance model, if you need to scale down, you cannot get rid of the reserved instances. Scaling up will require consuming resources on-demand at a higher cost. This reduces the flexibility of the Amazon offering, although you can still benefit from the advanced automation options and rich ecosystem of services Amazon provides.
Spot instances are only available for Amazon EC2. They offer the deepest discounts available on Amazon, up to 90% from on-demand instance pricing. Spot instances allow you to bid for spare computing capacity on Amazon’s open market. Pricing may change every five minutes, and if your price bid is above the current market price, you receive the spot instance. The Amazon EC2 Spot service can interrupt your instance if capacity is not available, or the current spot price exceeds your maximum price.
Amazon provides a broad set of free tools for cost management and optimization. Familiarize yourself with these tools, and use them to gain data, make decisions, and create rules and automated actions that will help you save money on AWS.
The billing section of the Amazon Console lets you see what services you are consuming on AWS and optimize their structure. Use tagging to organize services by project or department, and consolidate AWS accounts to create one billing entity for each project that has a separate budget within your organization. Read the official documentation on how to consolidate AWS billing accounts.
The Cost Explorer interface lets you view usage, costs, and return on investment for Amazon services. It shows data for the past 13 months and helps you forecast future spend. Create customized views that can help you analyze your costs and identify areas for improvement. Cost Explorer also provides an API that lets you access the data via your analytics tools.
AWS Budgets lets you set and enforce budgets for specific Amazon services, and receive emails or messages from the Simple Notification Service (SNS) when budgets are reached or exceeded. You can specify an overall cost budget or connect the budget to specific data points, such as number of instances or data usage. The Budgets dashboard provides similar views to those of Cost Explorer, showing how services are being used compared to their budgets.
AWS Trusted Advisor is an automatic tool that provides guidance on best practices for your Amazon services. One of the five areas checked by Trusted Advisor is cost optimization. It provides automated optimization recommendations related to:
Amazon CloudWatch lets you set alarms based on a large variety of metrics captured from your Amazon services. CloudWatch is commonly used for cost optimization. For example, you can set up an alarm and notification when an EC2 instance’s utilization goes below 30%, investigate why the instance is underused, and take action to right-size the instance or combine workloads.
Follow this checklist to reduce the costs of your AWS resources:
Control costs
Optimize compute instances
Optimize storage and other resources
AWS Cost Explorer provides the Resource Optimization report, which shows idle or underutilized EC2 instances. You can drive cost reduction by stopping these instances or switching them to a smaller instance size. Another option is to automatically stop underutilized instances using the AWS Instance Scheduler, or automate scheduling of instances using AWS Operations Conductor.
The AWS Compute Optimizer provides additional recommendations for EC2 instances. For example, it can suggest how to downsize instances across instance families, or switch to more powerful instances to avoid performance bottlenecks. It can also provide recommendations for efficient use of Auto Scaling groups.
Reserved Instances can significantly reduce costs on Amazon, but only if you actually use them. If you have idle reservations, it is important to make use of them to avoid losing your investment.
When you discover an unused or underused reserved instance, you can use them for a new application, or an existing application running on more expensive on-demand instances. Otherwise, you can sell your RIs in the Reserved Instance Marketplace.
If your workload is fault-tolerant, using Spot Instances can reduce EC2 costs by up to 90% and is a key strategy for AWS cost reduction. The main caveat is that spot instances can be interrupted at two minutes’ notice. Examples of typical workloads include big data, containerized workloads, CI/CD, web servers, and development/testing.
Amazon provides the Spot Fleet feature, which lets you run both on-demand and spot instances in the same Auto Scaling group, letting you reserve some on-demand instances which cannot be interrupted, for critical components.
NetApp Cloud Volumes ONTAP, the leading enterprise-grade storage management solution can do even more to help reduce your overall AWS spending through its powerful storage efficiency technologies, space-efficient snapshots, and zero-cost data cloning. With the thin provisioning, data compression, and deduplication storage efficiencies, companies can reduce storage footprint and costs on AWS by 70% and more.
AWS cost optimization is a broad topic. Different Amazon services have different pricing models and cost optimization techniques. Read the articles below to gain a deeper understanding of Amazon cost management strategies, with a special focus on storage services and opportunities for optimizing storage costs.
AWS Storage Costs
Amazon provides several popular cloud storage services: Elastic Block Store (EBS), Elastic File System (EFS), Simple Storage Service (S3), S3 Glacier, and more, each with its own pricing model and unique pricing parameters.
Understand storage costs across each of the primary storage services, and see Amazon storage pricing all in one place, with examples covering the most common scenarios.
Read more: AWS Storage Costs: All in One Place
Controlling EBS Costs
Amazon EBS provides persistent storage for Amazon EC2 instances. However, when you shut down an EC2 instances, the EBS storage volume may be not automatically deleted. This can lead to major cost overages, for example in case you deploy auto scaling and automatically create largen numbers of EC2 instances, but forget to erase their attached EBS volumes when they are no longer needed.
Learn how to find unused EBS volumes and automatically delete them using an AWS Lambda function, to control EBS costs and avoid waste.
Read more: Control EBS Costs: How to Find and Delete Unused AWS EBS Volumes Using a Lambda Function
Cloud Snapshot Costs: AWS Snapshots, Azure Snapshots, and Cloud Volumes ONTAP
Snapshots are an important part of keeping data protected no matter which cloud you’re using. But if you’re not aware of the costs involved both in the creation of snapshots and for storing them, you might wind up straining your cloud budget, especially when there are demands for consistency, which requires constant backing up.
This post deals with managing the costs of the native snapshots capabilities that are available for Amazon EBS and for Azure storage. You’ll see examples of how the snapshots are created and the pricing formulas on each service. Plus, you’ll see how NetApp Snapshots with Cloud Volumes ONTAP Cloud give a cost-saving third option for snapshot protection that works in any cloud.
Read more: Cloud Snapshot Costs: Cloud Volumes ONTAP, Azure, and AWS EBS Snapshot Pricing
AWS Cost Management: 9 Free Tools to Help Cut Your Costs
Amazon Web Services (AWS) provides a range of free tools for optimization and cost management. Discover a range of free Amazon cost management tools that can help you visualize, analyze, and cut cloud costs in the AWS cloud.
Read more: AWS Cost Management: 9 Free Tools to Help Cut Your Costs
AWS RDS Pricing Explained
Amazon Relational Database Service (Amazon RDS) provides a fully-managed database that includes security and high availability. Learn about key components of RDS pricing, including the free tier, pricing per database engine, database storage, provisioned IOPs, and more.
Read more: AWS RDS Pricing Explained
EFS Pricing Explained
Amazon Elastic File System (Amazon EFS) offers serverless elastic file systems. Understand the basic components of EFS pricing - storage, redundancy, and storage tiers - and learn how to optimize your EFS costs.
Read more: EFS Pricing Explained
AWS Calculator: Step By Step
You can use the official, free AWS Pricing Calculator to research AWS services and generate cost estimates for future usage of AWS. Learn how to use the AWS Calculator to generate quick estimates, advanced estimates, organize workloads using groups, and more in our detailed guide.
Read more: AWS Calculator: Step By Step
AWS Snowball Pricing Simplified
AWS Snowball is a service that ships a physical device to your data center, in order to transfer large amounts of data to or from Amazon S3. Get a simple explanation of AWS Snowball pricing components, including job and day rates, upfront commitments, data transfer, storage pricing, and shipping fees.
Read more: AWS Snowball Pricing Simplified
AWS Storage Gateway Pricing Explained
AWS Storage Gateway is designed to establish a secure connection between the AWS cloud storage infrastructure and on-premises software appliances. Understand pricing for all types of AWS Storage Gateway: including S3 File Gateway, FSx File Gateway, Volume Gateway, Tape Gateway, Hardware Appliance, and more.
Read more: AWS Storage Gateway Pricing Explained
Understanding AWS Total Cost of Ownership (TCO)
Cloud TCO involves calculating the costs required to host, run, integrate, secure and manage workloads in the cloud over their lifetime. Learn how to estimate AWS Total Cost of Ownership as compared to the TOC of your on-premises environment, and how to evaluate the viability of your AWS migration.
Read more: Understanding AWS Total Cost of Ownership (TCO)
Together with our content partners, we have authored in-depth guides on several other topics that can also be useful as you explore the world of IaaS.
Authored by NetApp
Authored by NetApp
Authored by NetApp