Simon Wang
Simon Wang

Reputation: 2273

How to create another AMI on the same EC2 instance

I do the following actions on AWS EC2:

  1. Start one EBS-backed EC2 instance i-1
  2. Customize it and create one AMI, let's say it AMI-1
  3. After i do further changes to the i-1 instance, i create a new AMI on the instance again
  4. I hop i would get two images as AMI-1 and AMI-2 now.
  5. But it seems only AMI-2 was created, the original AMI-1 disappear now. And the snapshot belong to AMI-1 still exists. It's strange.

Basically i want to know:

  1. So is it the normal behavior for customized AMI on EC2?
  2. If any way to let me create multiple AMIs on the same instance?
  3. After the AMI-2 is created, the running instances based on AMI-1 whether be influenced?

Thanks in advance. I could not get it clear from Google or EC2 document.

Upvotes: 2

Views: 1845

Answers (1)

Eric Hammond
Eric Hammond

Reputation: 22417

  • You can create multiple AMIs from a single instance.

  • AMIs do not disappear unless you explicitly deregister them.

  • If you deregister an AMI, it does not affect any running instances that were started from that AMI.

Upvotes: 5

Related Questions