Skip to main content

EC2 Pricing: Understanding Compute Costs on AWS

Amazon EC2 pricing considerations (& how to save your money)

After a first glance at the Amazon EC2 pricing page, you might find absorbing so much information a little intimidating. In this post, we will try to break EC2 pricing down and provide strategies to not only ease the pain but also save your organization money.

First and foremost, you would need to answer the following questions regarding your project:

  1. Will the machine be running 24/7 (a webserver, for example) or will it be temporary (like a Dev/test machine)?
  2. Bandwidth considerations: where will the data be stored?
    1. On Amazon or on-premise (basically anywhere outside Amazon)?
    2. Will the machine be outside-accessible (i.e., Internet-facing) or will it just talk to machines within the cluster (like an SQL Server)?
  3. Is it important for the machine to maintain uninterrupted uptime or is it OK to lose it temporarily (say a data cruncher pulling from a queue)?
  4. Does data need to be stored on the machine?
  5. Do you need additional software on the machine (a prebuilt SQL Server or Red Hat OS)?

With the above answered we can now get down to the nitty-gritty details and start figuring out costs.

Amazon EC2 pricing basically follows the following formula:

EC2 Machine + Block Store + Optional Software + Bandwidth + Optional Services

Amazon EC2 Pricing Tiers

EC2 pricing can now seem pretty straightforward. With information from questions 1&3, you can use the flow chart below to pick the correct tier. First though, a quick overview of tiers:

On-Demand Instance

a Basic type of virtual machine, you pay by the hour, and the machine will stay up as long as the hardware is functioning (i.e., Amazon won’t turn it off)

Reserved Instance

This machine is basically on a contract, so you’re buying it for 12/24/36 months, to run 24/7/365. This can provide significant savings, especially for longer-term contracts

Spot Instances

These instances are much cheaper, sometimes up to 60% below On-demand instance costs. They are purchased by the hour, and as the name suggests on the spot (i.e. at the time you spin up the machine). The downside is they can be brought down by Amazon at any time, with no warning

The EC2 pricing diagram

Block Store Pricing

Block Store Pricing comes into effect when the answer to question four is yes.

There are two types of Amazon EC2 storage: Instance Level storage and EBS.

  1. Instance Level storage is local storage on the machine which disappears when the machine is shut down. Any data on that storage is lost.
  2. EBS storage is persistent, so even when a machine is shut down it stays around and can be attached to another machine.

EC2 pricing for Block Store is charged based on GB per month. There are also High performance and backup options available

EC2 Pricing: optional software

I won’t go too deeply into this topic, as it really deserves its own post. But basically, you can purchase software from the AWS marketplace to run on your machines and pay per hour of use.

Think Oracle, Windows or Red Hat.

Bandwidth

Your answer to question two should help you with this section.

In essence, Intra-AWS transfers within the same availability zone are free (one exception is using a public IP since effectively you are going out to the internet and coming back in).
Internet inbound is free, Internet outbound costs money

Optional Services

Amazon offers services such as Monitoring and Load balancing, which have structures independent of Amazon EC2 pricing and are usually charged hourly in addition to the machine costs.

If you’re interested in learning more about EC2 cost saving, read this post where we show you  three ways to cut your EC2 costs on Amazon Web Services (AWS). 

Igor Putilov

Written by

Igor Putilov

I'm a founder of REVCOM, an ecommerce consulting agency. I have also recently started Digitized, which is a web development and cloud consulting agency.

Related Posts

Avatar
Stuart Scott
— June 20, 2019

Working with AWS Networking & Amazon VPC

Being able to architect your own isolated segment of AWS is a simple process using VPCs; understanding how to architect its related networking components and connectivity architecture is key to making it a powerful service.Many services within Amazon Web Services (AWS) require you t...

Read more
  • AWS
  • VPC
Avatar
Stuart Scott
— June 19, 2019

AWS Compute Fundamentals Update

AWS is renowned for the rate at which it reinvents, revolutionizes, and meets customer demands and expectations through its continuous cycle of feature and service updates. With hundreds of updates a month, it can be difficult to stay on top of all the changes made available.  Here ...

Read more
  • AWS
Jeff Hyatt
Jeff Hyatt
— June 18, 2019

10 Steps for an Effective Reserved Instances Strategy

Amazon Web Services (AWS) offers three different ways to pay for EC2 Instances: On-Demand, Reserved Instances, and Spot Instances. This article will focus on effective strategies for purchasing Reserved Instances. While most of the major cloud platforms offer pre-pay and reservation dis...

Read more
  • AWS
  • EC2
Joe Nemer
Joe Nemer
— June 18, 2019

AWS Certification Practice Exam: What to Expect from Test Questions

If you’re building applications on the AWS cloud or looking to get started in cloud computing, certification is a way to build deep knowledge in key services unique to the AWS platform. AWS currently offers 11 certifications that cover major cloud roles including Solutions Architect, De...

Read more
  • AWS
  • AWS Certifications
Avatar
John Chell
— June 13, 2019

AWS Certified Solutions Architect Associate: A Study Guide

The AWS Solutions Architect - Associate Certification (or Sol Arch Associate for short) offers some clear benefits: Increases marketability to employers Provides solid credentials in a growing industry (with projected growth of as much as 70 percent in five years) Market anal...

Read more
  • AWS
  • AWS Certifications
Chris Gambino and Joe Niemiec
Chris Gambino and Joe Niemiec
— June 11, 2019

Moving Data to S3 with Apache NiFi

Moving data to the cloud is one of the cornerstones of any cloud migration. Apache NiFi is an open source tool that enables you to easily move and process data using a graphical user interface (GUI).  In this blog post, we will examine a simple way to move data to the cloud using NiFi c...

Read more
  • AWS
  • S3
Avatar
Chandan Patra
— June 11, 2019

Amazon DynamoDB: 10 Things You Should Know

Amazon DynamoDB is a managed NoSQL service with strong consistency and predictable performance that shields users from the complexities of manual setup.Whether or not you've actually used a NoSQL data store yourself, it's probably a good idea to make sure you fully understand the key ...

Read more
  • AWS
  • DynamoDB
Avatar
Andrew Larkin
— June 6, 2019

The 11 AWS Certifications: Which is Right for You and Your Team?

As companies increasingly shift workloads to the public cloud, cloud computing has moved from a nice-to-have to a core competency in the enterprise. This shift requires a new set of skills to design, deploy, and manage applications in cloud computing.As the market leader and most ma...

Read more
  • AWS
  • AWS Certifications
Sam Ghardashem
Sam Ghardashem
— May 15, 2019

Aviatrix Integration of a NextGen Firewall in AWS Transit Gateway

Learn how Aviatrix’s intelligent orchestration and control eliminates unwanted tradeoffs encountered when deploying Palo Alto Networks VM-Series Firewalls with AWS Transit Gateway.Deploying any next generation firewall in a public cloud environment is challenging, not because of the f...

Read more
  • AWS
Joe Nemer
Joe Nemer
— May 3, 2019

AWS Config Best Practices for Compliance

Use AWS Config the Right Way for Successful ComplianceIt’s well-known that AWS Config is a powerful service for monitoring all changes across your resources. As AWS Config has constantly evolved and improved over the years, it has transformed into a true powerhouse for monitoring your...

Read more
  • AWS
  • Compliance
Avatar
Francesca Vigliani
— April 30, 2019

Cloud Academy is Coming to the AWS Summits in Atlanta, London, and Chicago

Cloud Academy is a proud sponsor of the 2019 AWS Summits in Atlanta, London, and Chicago. We hope you plan to attend these free events that bring the cloud computing community together to connect, collaborate, and learn about AWS. These events are all about learning. You can learn how t...

Read more
  • AWS
  • AWS Summits
Paul Hortop
Paul Hortop
— April 2, 2019

How to Monitor Your AWS Infrastructure

The AWS cloud platform has made it easier than ever to be flexible, efficient, and cost-effective. However, monitoring your AWS infrastructure is the key to getting all of these benefits. Realizing these benefits requires that you follow AWS best practices which constantly change as AWS...

Read more
  • AWS
  • Monitoring