以下是我在云组网负载均衡模板中使用的代码,您能帮我做一下吗
"TargetGroup": {
"Type": "AWS::ElasticLoadBalancingV2::TargetGroup",
"Properties": {
"Name": "MyTargets",
"Port": 10,
"TargetType": "instance",
"Protocol": "TCP",
"TargetGroupAttributes": [{
"Key": "deregistration_delay.timeout_seconds",
"Value": "20"
}],
"VpcId": {
"Fn::Select": [
"0",
{
"Ref": "VPC"
}
]
},
"Targets": [ "Id", {"Ref": "Id.ins1" }, "Id", {"Ref": "Id.ins2"} ]
}
},发布于 2019-10-20 13:51:25
您需要检查Targets的值。目标应该是TargetDescription的列表。TargetDescription的语法:
{
"AvailabilityZone" : String,
"Id" : String,
"Port" : Integer
}在您的示例中,它将如下所示:
"Targets":[ { "Id":{ "Ref":"Id.ins1" },"Port":80 },{ "Id":{ "Ref":"Id.ins2" },"Port":80 } ]https://stackoverflow.com/questions/58470052
复制相似问题