In this blog port, we discuss strategies and best practices for cost optimization on Amazon Web Services and how they relate to sustainability. From identifying and eliminating wasted resources to utilizing cost-saving features such as Reserved Instances and Auto Scaling, we explore how you can keep your costs under control and contribute to a more sustainable future in the cloud.
The default billing settings are usually sufficient if you manage a single AWS account. However, if you manage multiple accounts, there is no way around the AWS Organization. The AWS Organization allows you to consolidate billing data and payments across multiple accounts and set up budgets and cost alerts to manage costs. The service also enables the management of multiple accounts and helps enforce governance, security, and compliance standards.
The Consolidated Billing feature in AWS Organizations provides the following benefits:
AWS Savings Plans is a cost-saving feature that allows you to reduce your AWS hourly rate by committing to a constant amount of use over a set time. There are three types of AWS Saving Plans:
If you commit to consistent use or a number of instances, you can take advantage of a lower hourly rate. This can help you reduce your expenditure, especially if you have predictable use patterns, or you can shift some of your workloads to lower-cost instances.
Using the AWS Cost Management Console, you can better understand your savings plans coverage with the coverage report. You can also identify any areas where you may need to purchase additional savings plans to optimize your costs fully.
The following diagram demonstrates an example of an organization where 44% of AWS Resources are covered by Saving Plans (note: only EC2, Lambda, Fargate, and SageMaker can be covered by Saving Plans). 56% are provisioned and billed with theon-demand rates by Amazon Web Services.
Each Amazon Web Services payment option has its advantages and trade-offs:
It's important to note that you are still committed to using the reserved capacity for the entire term, regardless of your chosen payment option. You will be billed for the total cost of the Reserved Instance, irrespective of whether you use it or not. Reserved Instances and Savings Plans provide a more predictable cost model, help you budget more effectively, and make more informed decisions about your infrastructure needs. To further reduce your costs, you can combine both. Use Reserved Instances to save money on specific instance types and availability zones, and use Savings Plans to save money on your overall use.
Combining AWS Auto Scaling and right-sizing ensures that you are using resources appropriately. This helps you optimize your AWS costs, improve performance, and reduce over-provisioning.
AWS Auto Scaling and right-sizing are particularly useful for development and test environments, where resources may not be in use outside of regular business hours or during weekends and holidays. By automatically shutting down resources when they are not needed, you can avoid unnecessary charges for running those resources. This can help you optimize your costs and ensure that you are only paying for the resources that you need. Amazon Web Services provides various solutions to execute the automatic shutdown of resources, such as the AWS Instance Scheduler and the Amazon EventBridge Scheduler.
In addition to lower costs, upgrading from gp2 to gp3 on Amazon Web Services provides several benefits, including higher storage limits and performance. Gp3 also offers more options for IOPS and throughput, allowing more flexibility in choosing the right storage solution for your workload. Furthermore, gp3 volumes support a feature called bursting, which enables a higher IOPS rate for short periods when workloads require it. Bursting ensures that storage performance limitations do not throttle your workloads. The burstable performance of gp3 enables savings by reducing the need to over-provision storage. In general, gp3 offers 20 percent lower costs than gp2 on a per-GB basis. The improved performance and additional features of gp3 result in cost savings for workloads, particularly those that require high IOPS or throughput. Take a look at Amazon’s migration cost calculator to identify how much you can save by migrating from gp2 to gp3.
Graviton2 instances are based on 7nm process technology and are designed to be energy-efficient, which can help to reduce costs associated with power and cooling. Graviton2 is eminently suitable for workloads such as Linux, RDS, EMR, AWS Lambda, and Amazon Aurora. It has the advantage of providing significantly better performance and reducing costs by up to 50 percent. It's worth mentioning that Graviton2 instances are only available in certain regions and availability zones and may not support all the features and configurations of x86 instances. So, it's essential to check availability and compatibility before deciding.
EC2 Spot Instances allow you to bid on spare Amazon EC2 capacity at a discounted rate. They are available at a significant discount compared to on-demand instances. You can save up to 90 percent compared to on-demand pricing. They can be an excellent option for workloads that tolerate interruptions and have flexible start and end times.
Your code performance impacts the underlying compute resource, so you pay extra for every unnecessary code snippet. There are different ways to reduce your running time and increase performance.
Cost allocation tags are metadata you can apply to your AWS resources to help identify and track costs. Each tag consists of a key-value pair to categorize and organize your costs. You can identify and track spending by department, project, or application by enabling cost allocation tags for the Billing console and dashboard. The tags can help you understand how costs are incurred across your organization so you can take steps to optimize them.
AWS Cost explorer is a native solution for cost and usage reports on the Amazon Web Services Console. However, it has its limitations regarding detailed cost information at a resource level. The CUDOS (Cloud Intelligence Dashboard) is an AWS solution based on Amazon QuickSight, Amazon Athena, and AWS Glue. It utilizes the AWS Cost and Usage report to provide a detailed cost analysis via different dashboards.
Overall, the CUDOS dashboard is a more powerful and versatile solution for analyzing costs across an AWS Organization. To set up the CUDOS dashboard, consult the AWS workshop that describes all the necessary steps and functions in detail.
Billing and budget alerts on AWS help you save money, optimize your cloud resources, and stay within your budget. Here are a few reasons why you should consider using these features:
Reducing costs and sustainability often go hand in hand as sustainable practices and using sustainable resources can lead to long-term savings. For example, energy-efficient resources such as Graviton-2 and GP3 can reduce energy bills for AWS, resulting in better prices that can benefit your customers. And improving the performance of your code reduces the runtime of the underlying hardware, saving energy and automatically reducing costs. Companies prioritizing sustainability often attract more environmentally conscious customers and investors, boosting their reputation and financial performance.
It’s worth reflecting on the responsibilities necessary to achieve your organization’s sustainability goals. Amazon Web Services shared responsibility model outlines the roles of AWS and its customers in maintaining the security and compliance of the cloud platform. The basic premise is that AWS is responsible for the underlying infrastructure’s security, and its customers are responsible for protecting their applications and data. The AWS shared responsibility model for sustainability is similar. It focuses on the environmental impact of AWS’ services and its customers’ use. In this model, Amazon Web Services is responsible for providing sustainable and efficient infrastructure, while customers are responsible for using the infrastructure in a sustainable way. For example, AWS is responsible for designing and operating energy-efficient data centers, while customers are responsible for optimizing their resource usage and reducing their carbon footprint through practices such as auto-scaling and energy-efficient configurations.
As an AWS Premier Partner, T-Systems supports companies in using AWS end-to-end. We support the development of the AWS strategy, particularly the optimization of financial infrastructure. We ensure governance and optimization across all AWS workloads and guide our customers to a more sustainable, transparent, and cost-conscious cloud infrastructure. Get in touch with us if you are looking for FinOps consulting support.