从其中创建映像后,是否可以删除原始EC2实例? [英] Can I delete original EC2 instance after creating an image out of it?
问题描述
我已使用EBS根目录设置了EC2实例.作为该过程的一部分,系统已创建了其EBS卷的快照.我的疑问是,当我删除EC2实例(及其EBS卷)时会发生什么.
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).
删除EBS卷后,快照仍将拥有系统的完整副本吗? 将来是否可以从AMI中还原系统的副本?
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?
谢谢
推荐答案
如果从EC2实例创建AMI,则可以终止该实例并从AMI创建一个新实例.
If you create an AMI from an EC2 instance, you can terminate the instance and create a new one from the AMI.
如果已获取实例正在使用的EBS引导卷的快照,则需要先将其注册为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.
这篇关于从其中创建映像后,是否可以删除原始EC2实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!