amazon-web-services - 启动模板参考codepipeline构建的最新AMI
问题描述
我有创建 AMI 的代码管道,并且我创建了单独的 Cloudformation 堆栈来创建使用 AMI 的启动模板。目前,启动模板 Cloudformation 具有像这样硬编码的 AMI imageID
LaunchTemplate:
Type: AWS::EC2::LaunchTemplate
Properties:
LaunchTemplateData:
ImageId: ami-xxxxxxxxxxxxxxx
更新 LaunchTemplate 以始终使用由 codepipe 行构建的最新 imageId 的最佳方法是什么?
解决方案
推荐阅读
- python - 将列内列表拆分为多列
- c# - 创建新记录时的 WebAPI CORS 策略
- android - 如何将此 UserDao 与 Date 一起使用?
- excel - 我们可以从不在列序列中的数据列创建一个 excel 表吗
- list - Erlang 二进制输入示例
- visual-studio-code - 在 VSCode 上运行 Julia
- angular - 我想在 Angular 的另一个组件中使用来自一个组件的数据
- asp.net-core-mvc - Redis 作为 ASP.NET Core 3.1 MVC 中的 OutputCacheProvider
- botframework - 在 bot 框架中的 webChat 中上传附件是否有任何大小限制,因为上传超过 4mb 大小的附件时会出现超时问题?
- android - Flutter Shared Preferences Android 警报管理器加上没有获得最新值