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

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

问题描述

我已经开始使用Amazon的新启动模板,但到目前为止,我还是很喜欢,但是我最近从一个实例中制作了一个图像,然后创建了新版本的启动模板并使用了新的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:

错误
您必须使用有效的格式完整的启动模板。无法在根设备上修改snapshotId

是否需要重新创建AMI?

Do I need to recreate the AMI?

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

If anyone has any suggestions that would be greatly appreciated.

推荐答案

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

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

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

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