[英]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>>
ECSOptmizedAMI:
Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>
Default: /aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.