创建 EC2 AMI 映像

发布于 2024-11-09 16:32:49 字数 397 浏览 0 评论 0原文

我想为我的实例创建 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 的脚本的终止或仅在我终止时终止实例?

I want to create an AMI of my instance but I'm frightened by the following prompt on 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.

Now when it says that the EBS volume will delete on termination, does it mean termination of the script that creates the AMI or just when I terminate the Instance?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

勿忘心安 2024-11-16 16:32:49

AWS 开发人员论坛上的帖子对此进行了说明。

<块引用>
<块引用>

终止时删除是一个可以关闭的标志,如果实例本身终止,该标志将删除该卷。除非您终止当前实例,否则您当前的 EBS 卷不会丢失。创建镜像只会重启当前实例(您也可以禁用它,但不建议确保一致性)


There is a post on AWS developer forum that sheds light to this.

Delete on termination is a flag that can be turned off, which will remove the volume if the instance itself is terminated. Your current EBS volume will not be lost unless you terminate your current instance. Creating an image will only restart your current instance (You can disable that too, but not recommended to ensure consistency)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文