0 votes
in Ansible by (13.0k points)
Ansible ec2

1 Answer

0 votes
by (13.1k points)

EC2 stands for Amazon Elastic Compute Cloud.

Amazon EC2 is a web service that provides resizable compute capacity in the cloud.

Amazon EC2 reduces the time required to obtain and boot new user instances to minutes rather than in older days, if you need a server then you had to put a purchase order, and cabling is done to get a new server which is a very time-consuming process. Now, Amazon has provided an EC2 which is a virtual machine in the cloud that completely changes the industry.

You can scale the compute capacity up and down as per the computing requirement changes.

Amazon EC2 changes the economics of computing by allowing you to pay only for the resources that you actually use. Rather than you previously buy physical servers, you would look for a server that has more CPU capacity, RAM capacity and you buy a server over 5 year term, so you have to plan for 5 years in advance. People spend a lot of capital in such investments. EC2 allows you to pay for the capacity that you actually use.

Amazon EC2 provides the developers with the tools to build resilient applications that isolate themselves from some common scenarios.

EC2 Pricing Options


On Demand

It allows you to pay a fixed rate by the hour or even by the second with no commitment.

Linux instance is by the second and windows instance is by the hour.

On Demand is perfect for the users who want low cost and flexibility of Amazon EC2 without any up-front investment or long-term commitment.

It is suitable for the applications with short term, spiky or unpredictable workloads that cannot be interrupted.

It is useful for the applications that have been developed or tested on Amazon EC2 for the first time.

On Demand instance is recommended when you are not sure which instance type is required for your performance needs.


It is a way of making a reservation with Amazon or we can say that we make a contract with Amazon. The contract can be for 1 or 3 years in length.

In a Reserved instance, you are making a contract means you are paying some upfront, so it gives you a significant discount on the hourly charge for an instance.

It is useful for applications with steady state or predictable usage.

It is used for those applications that require reserved capacity.

Users can make up-front payments to reduce their total computing costs. For example, if you pay all your upfronts and you do 3 years contract, then only you can get a maximum discount, and if you do not pay all upfronts and do one year contract then you will not be able to get as much discount as you can get If you do 3 year contract and pay all the upfronts.

Types of Reserved Instances:

Standard Reserved Instances

Convertible Reserved Instances

Scheduled Reserved Instances