EC2 OS disk pricing

0

Hello Team.

I am trying to understand how is charged the os disk for EC2. In AWS Calculator, I don't see any option to configure the cost for OS disk.

  1. Does OS disk is charged o it is free?
  2. When I use AWS calculator for EC2 estimation, must I add an additional EBS disk for OS disk apart of EBS for data disk?
  3. If I want to estimate EC2 for only 300 hours (EC2 stopped) in AWS calculator, I understand for EBS attached to EC2 will continue charging cost, but in AWS calculator I dont understand why try to calculate my EC2 EBS with 300 hours, or should I estimate EBS apart of EC2 as 730 hours?. Check this example: *1 instances x 0.0042 USD On Demand hourly cost x 300 hours in a month = 1.260000 USD On-Demand instances (monthly): 1.260000 USD

300 total EC2 hours / 730 hours in a month = 0.41 instance months 700 GB x 0.41 instance months x 0.08 USD = 22.96 USD (EBS Storage Cost) EBS Storage Cost: 22.96 USD Amazon Elastic Block Store (EBS) total cost (monthly): 22.96 USD*

  1. 730 hours is a month or 744?
  2. Also, LVM is supported for root volume and data volume in AWS EC2?

Thank you.

Orlando
asked a year ago464 views
1 Answer
0

The answer is it depends. You have two types of instances:

  • instances with EBS-backed storage
  • instances with ephemeral (local) storage There are fundamental differences between the 2, one of the main ones is cost as the first one is charged per GB and the second one is free.

When you create an estimate using the calculator, you have a section for EBS volumes when you configure an EC2 instance in your estimate. Any EBS that will be used can be added there, or as a separate entry. Obviously, you don't need to add any ephemeral storage as it is free. However, any data stored on your ephemeral storage will be lost when the instance is stopped or restarted so you need to be careful which usage you make of it.

When you add an instance to your estimate, you have the following information for the optional section where you can add EBS: "Amazon Elastic Block Store (EBS) allows you to create storage volumes and attach them to Amazon EC2 instances. Once attached, you can create a file system on top of these volumes, run a database, or use them in any other way you would use block storage."

730h is the average number of hours in a month over a non-leap year (i.e. 365 * 24 / 12)

You can create LVM on top of your EBS for your root and data storage device, that's not an issue.

You are right on point 3 if I understand what you mean. If you want to estimate your actual EC2 cost for 360 hours, and you want to retain your EBS volumes when your instance is stopped, you need to add your EBS storage separately in the estimate, otherwise instance utilization is also going to impact EBS cost.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions