Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change AMI on same instance

Tags:

amazon-ec2

I have a free micro instance launched in AWS EC2, I want to change the instance's OS to Cent OS. How would I be able to change the AMI <- (OS Image) of the instance?

Edit (Solved):

Terminated existing instance and launched a new one.

like image 627
box Avatar asked Apr 18 '12 16:04

box


People also ask

Can AMI be updated?

You can't edit AMI once you created Launch Configuration LC-1 ( You can't change anything once you create Launch configuration). Okay, but it's difficult to create a new Launch configuration all time and then update the auto scaling group with new Launch Configuration.

How do I edit an EC2 instance?

To edit an instance's configurationStop the instance, if it is not already stopped. On the Instances page, click an instance name to display the Details page. Click Edit to display the edit page. Edit the instance's configuration, as appropriate.

Can you rename an AMI?

It is not possible to change the name of an AMI image. Once the name is set, it cannot be changed. You have 2 possible resolutions: Create the AMI image again, using a different name.


1 Answers

You cannot update the AMI on an existing instance in AWS. The only way to do that is to terminate the current instance and relaunch the instances with the desired the AMI

Background

AMI is a special type of virtual appliance that is used to instantiate (create) a virtual machine within the Amazon Elastic Compute Cloud ("EC2") and I always refer to it as .iso image file.

Now I can use an .iso image file of a particular OS say Ubuntu to install it on a partition of my choice and if I want to change the OS on that partition then only way for me to do is by formatting that partition and installing a new OS from its .iso image file.

like image 194
Rakesh Sankar Avatar answered Oct 18 '22 02:10

Rakesh Sankar