创建 EC2 AMI 镜像

6

我想创建一个AMI实例,但是AWS上的以下提示让我有些害怕:

The instance you're using as a template for a new image has the following volumes:
/dev/sda1, vol-a9 (15 GiB), will delete on termination
Total size of EBS volumes: 15 GiB.
When you create an EBS image an EBS snapshot will also be created for each of the above volumes.

现在,当它说EBS卷将在终止时删除时,它是指创建AMI的脚本终止还是仅指我终止实例?

1个回答

9

这里有一个AWS开发者论坛上的帖子可以解释这个问题。

“Delete on termination”是一个标志,可以关闭它,这将在实例本身终止时删除该卷。除非您终止当前实例,否则不会丢失当前EBS卷。创建镜像只会重新启动当前实例(您也可以禁用它,但为了确保一致性,不建议这样做)。


谢谢 Jahufar,这正是我需要听到的。 - Ben

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接