How to change AMI on same instance

amazon-ec2

Solution

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.

Problem

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.

Original source

Related problems