【发布时间】:2018-03-30 09:12:36
【问题描述】:
我正在尝试将子网 ID 列表传递给云形成模板,但出现错误。我做错了什么?
模板中的参数:
ClusterSubnets:
Description: Subnets, in the same VPC where cluster ec2 instances reside.
Typically private. Use mutiples, each in a different AZ for HA.
Type: "List<AWS::EC2::Subnet::Id>"
json文件中的参数sn-p:
{
"ParameterKey": "ClusterSubnets",
"ParameterValue": [ "subnet-8fc8c4f7" ]
},
结果: 参数验证失败: 参数Parameters[1].ParameterValue的类型无效,值:[u'subnet-8fc8c4f7'],类型:type 'list',有效类型:type 'basestring'
【问题讨论】:
标签: amazon-web-services amazon-cloudformation