Search code examples
amazon-web-servicesamazon-ec2amazon-ami

Can I delete original EC2 instance after creating an image out of it?


I've setup a EC2 instance with EBS root. As part of the process, the system has created a snapshot of its EBS volume. My doubt is what happens when I remove the EC2 instance (and its EBS volume).

After deleting the EBS volume, will the snapshot still have the full copy of my system? Will I be able to restore a copy of my system in future out of the AMI?

Thanks


Solution

  • If you create an AMI from an EC2 instance, you can terminate the instance and create a new one from the AMI.

    If you have taken a snapshot of the EBS boot volume the instances is using, you will need to register it as an AMI before you can create a new instance.

    If you take a snapshot of a volume, and then delete the original volume, you can recreate the volume from the snapshot even if the original volume is deleted.