首页 > 解决方案 > 启动模板参考codepipeline构建的最新AMI

问题描述

我有创建 AMI 的代码管道,并且我创建了单独的 Cloudformation 堆栈来创建使用 AMI 的启动模板。目前,启动模板 Cloudformation 具有像这样硬编码的 AMI imageID

LaunchTemplate:
    Type: AWS::EC2::LaunchTemplate
    Properties:
      LaunchTemplateData:
        ImageId: ami-xxxxxxxxxxxxxxx

更新 LaunchTemplate 以始终使用由 codepipe 行构建的最新 imageId 的最佳方法是什么?

标签: amazon-web-servicesaws-codepipelineamazon-amiaws-auto-scalinglaunch-template

解决方案


推荐阅读