亚马逊启动模板 - 更新的 AMI [英] Amazon Launch Template - Updated AMI

查看:32
本文介绍了亚马逊启动模板 - 更新的 AMI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始使用 Amazon 的新 Launch Templates 并且到目前为止很喜欢它,但是我最近刚刚从我的一个实例制作了一个图像,然后我创建了一个 Launch 模板的新版本并使用了新的 AMI.

I have started using Amazon's new Launch Templates and so far liking it however I just recently made an image from one of my instances, I then created a new version of the Launch template and used the new AMI.

将我的自动缩放组更新到新版本的模板时,保存后出现以下错误:

When updating my auto scaling group to the new version of the template, upon save it gives me the below error:

错误您必须使用有效的完整启动模板.无法在根设备上修改快照 ID

我需要重新创建 AMI 吗?

Do I need to recreate the AMI?

如果有人有任何建议,将不胜感激.

If anyone has any suggestions that would be greatly appreciated.

推荐答案

好的,经过几次尝试后,我发现错误消息中的提示与当时一样不清楚.我在创建新版 Launch Template 时没有做的是,在更新 AMI ID 后,我还需要将模板使用的卷的 Snapshot ID 更新为 AMI 时创建的快照的 Snapshot ID已创建.

Ok after a few tries I've discovered that the hint is in the error message as unclear as it was at the time. What I didn't do when creating the new version of the Launch Template was, after updating the AMI ID, I also needed to update the Snapshot ID of the volume used by the template, to the Snapshot ID of the snapshot created when the AMI was created.

如果在更改 AMI 时,它会搜索现有 AMI 的列表,然后允许您选择所需的 AMI 列表,然后它将使用必要的内容(例如快照 ID)更新模板,这会有所帮助...

Would help if when changing the AMI, it searched a list of existing AMIs then allowed you to select the one you want which will then update the template with the necessary things such as Snapshot ID...

c'est la vie

c'est la vie

这篇关于亚马逊启动模板 - 更新的 AMI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆