简体   繁体   English

AMI 列表的 Cloudformation 参数

[英]Cloudformation parameter for list of AMIs

I'm creating a cloudformation for ecs cluster over an auto scaling group.我正在通过自动缩放组为 ecs 集群创建 cloudformation。 In the launch configurations for the auto scaling group, i want to have a choice in specifying the ECS optimized AMI Id.在 Auto Scaling 组的启动配置中,我希望可以选择指定 ECS 优化的 AMI Id。 Right now I have the following parameter:现在我有以下参数:

"AutoScalingGroupImageId": {
   "Default" : "/aws/service/ami-windows-latest/Windows_Server-2016-English-Full-SQL_2017_Standard",
   "Description" : "The AMI Id to be specified for the ASG",
   "Type": "AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>"            
}

It needs to be something like List<AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>> from which i could choose the AMI Id for the required windows server.它需要类似于List<AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>>之类的东西,我可以从中为所需的 windows 服务器选择 AMI Id。

Construct such as List<AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>> is officially not supported .官方不支持List<AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>>等构造。 From docs :来自文档

AWS CloudFormation doesn't support the following SSM parameter type: Lists of SSM parameter types—for example: AWS CloudFormation不支持以下 SSM 参数类型:SSM 参数类型列表——例如:

List<AWS::SSM::Parameter::Value<String>>

AMI for ECS instance ECS实例的AMI

  ECSOptmizedAMI:
    Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>
    Default: /aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id

The above is based on AWS docs .以上内容基于AWS 文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 CloudFormation 参数模板错误:参数不是字母数字 - CloudFormation Parameter Template Error : Parameter is non alphanumeric 用于多个参数文件和单个模板的 CloudFormation - CloudFormation for multiple parameter files and a single template CloudFormation模板-通过参数选择设置容器镜像 - CloudFormation Template - Setting Container Image by Parameter Selection 在 Cloudformation 脚本中为 CommaDelimitedList 类型的参数强制执行 AllowedPattern - Enforce AllowedPattern for parameter of type CommaDelimitedList in Cloudformation script 我可以使用 CloudFormation 中的映射来定义参数吗? - Can I define a parameter by using mappings in CloudFormation? AWS:cloudformation CommaDelimitedList 和手动列表不匹配 - AWS: cloudformation CommaDelimitedList and manual list not matching Cloudformation 参数 map 并使用 !join 加入 API 网关 uri - Cloudformation Parameter map and using !join to join API Gateway uri 在 CloudFormation 模板中指定 VPC 参数后查找 IGW - Lookup IGW after specifying VPC parameter in CloudFormation template boto3 cloudformation list_stacks() function 未列出 cloudformation 中的所有堆栈 - boto3 cloudformation list_stacks() function is not listed all the stacks in cloudformation 在 AWS 中查找并删除过时的 AMI - Find and remove outdated AMIs in AWS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM