Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can i convert a running OnDemand EC2 Instance to Reserved Instance?

I have a light weight Application hosted on a Medium EC2 environment which i need for longer duration, While launching i opted for Ondemand instead of Reserved. How do i now convert a running OnDemand EC2 Instance to Reserved Instance?

like image 750
Ilyas F Avatar asked Aug 14 '14 09:08

Ilyas F


People also ask

Can we change EC2 instance type while running?

You can't change the instance type of a Spot Instance. If your instance is in an Auto Scaling group, the Amazon EC2 Auto Scaling service marks the stopped instance as unhealthy, and may terminate it and launch a replacement instance.

What is benefit of choosing reserved instance over on demand instance?

RIs provide you with a significant discount (up to 72%) compared to On-Demand instance pricing. You have the flexibility to change families, OS types, and tenancies while benefitting from RI pricing when you use Convertible RIs.


1 Answers

All you have to do is to purchase a Reserved Instance of the same type as the current running instance.

They way this works is that AWS compares the current list of your reserved instances with the running ones, and will bill activity at the reserved instance price for a number of running instances equal to the number of your purchased reserved instances.

For example: you have 4 running c1.xlarge instances. You purchase 2 c1.xlarge reserved instances. From this moment on, AWS will bill activity this way: 2xc1.xlarge at the reserved price, 2xc1.xlarge at the on-demand price.

Hope this is clear enough, let me know in the comments.

like image 97
andreimarinescu Avatar answered Nov 15 '22 03:11

andreimarinescu