I do the following actions on AWS EC2:
- Start one EBS-backed EC2 instance i-1
- Customize it and create one AMI, let’s say it AMI-1
- After i do further changes to the i-1 instance, i create a new AMI on the instance again
- I hop i would get two images as AMI-1 and AMI-2 now.
- 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:
- So is it the normal behavior for customized AMI on EC2?
- If any way to let me create multiple AMIs on the same instance?
- 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.
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.