7 AWS Cost Optimization Techniques

DZone 's Guide to

7 AWS Cost Optimization Techniques

Businesses that are small or fresh may not have much money to spen on AWS services, so check out these tips to keep the bill as low as possible.

· Cloud Zone ·
Free Resource

Are you a small business trying to learn more about AWS cloud cost management? Has your AWS monthly bill and usage gone up and you cannot tell if you are using all that you paid for?

The ease of creating compute resources in AWS cloud has created an environment where your AWS bill continues to grow each month. There is nothing wrong with this, provided you are using all that you have purchased. Large organizations look at various aspects like the number of AWS regions, resource types, tagging for cost allocation, cost calculation complexities, and networking layer variable costs. Understanding what you are using vs. not using is an initiative large organizations take on seriously but not smaller businesses, until now.

In this article, we will look at 7 things you can do to identify the leaks easily and then I will show you how to do this rapidly.

From my earlier article, I will use this process and you should be able to see how the sequence of steps in the process is important, specifically when to apply reservations.

5 steps in cloud cost optimization

1. Examples of The Kinds of Tasks

For each of your compute instances Amazon stores metrics on CPU and memory usage that looks like this:

CPU spikes hard to understand

The peaks are more important than the lows and if you are able to arrive at a usage graph like this, this you can tell how complete your utiliazation is.

Box plot representation of CPU has benefits for Cloudwatch

2. Wrong Instance Types or Reservations Used

Newer generation systems have more horsepower for lesser costs than older ones, fore example:

memory of various instance types

Amazon AMI tends to be lower costs over RedHat, Ubuntu, and other Linux distros. Check out the prices for EC2 instances.

3. Failing to Shut Down Related Components of Instances

Shutting down an instance doesn’t free you of all costs. You are paying for things like storage and network IP irrespective of whether your instance is up or not as your resource state is managed. Consider making an AMI of your instance for future use.

4. Wrong Storage Configuration

Between storage classes available for general purpose SSDs, provisioned IOPS, and HDDs, there are variations of IOPS. Check the metrics in Cloudwatch to determine the right storage category for your needs.

gp2 vs io1 provisioned iops storage choices

5. Not Releasing Elastic IPs:

Elastic IPs have no cost when your instance is running, but when your instance is idle you accrue costs:

  • $0.00 for one Elastic IP address associated with a running instance
  • $0.005 per additional Elastic IP address associated with a running instance per hour on a pro rata basis
  • $0.005 per Elastic IP address not associated with a running instance per hour on a pro rata basis

6. Release Orphaned Snapshots

Deleting orphaned snapshots (your backups) of instances that no longer exist will save you as much as deleting the original volumes. Identify snapshots with no parents!

7. Manage Data Transfer Costs

Interzone traffic is charged and if your application configuration is like below, note the ways you can alter inter-zone traffic and reduce your networking layer costs.

Cloud network cost optimization

These are some of the relatively easier ways of cost management that can give you 60-70% cost savings on your account before bringing in the widely held method of cost reductions – reservations. Reservations in the cloud are necessary but in the cloud where capacity is infinite, use what you need when you need is a way of managing your costs.

If your AWS account expense is low (under $250/month), you can go through these steps to identify leaks in minutes for what was previously only available to enterprises!

Our vision is to use machine learning to help you navigate the cloud, specifically capacity and costs. Cost optimization is a pillar of AWS well-architected framework and Amazon knows that when you are using the resources well, chances are you will use more of AWS.

Due to the scarcity of consulting talent, the complexity of analysis the tools for cost optimization only exist for the top enterprise spend with AWS accounts with spending under $10,000/month vastly neglected. However, with the emergence of deep learning, AI we believe we can find the cost savings in your AWS accounts and help you use more.

amazon web services, aws, aws cloud, business inteligence, system administration

Published at DZone with permission of Joseph Matthew . See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}