- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
下面是我在云形成网络负载均衡器模板中使用的代码,您能帮助我吗
"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"} ]
}
},
最佳答案
您需要检查“目标”的值。目标应该是 TargetDescription 列表。 TargetDescription 的语法:
{
"AvailabilityZone" : String,
"Id" : String,
"Port" : Integer
}
在你的情况下,它会是这样的:
"Targets":[ { "Id":{ "Ref":"Id.ins1" },"Port":80 },{ "Id":{ "Ref":"Id.ins2" },"Port":80 } ]
关于aws-cloudformation - 属性 Targets 的值必须是对象列表“AWS::ElasticLoadBalancingV2::TargetGroup”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58470052/
更新环境变量和 repo 中的代码(自动部署到这个 AWS EB 环境)后,我开始得到 Environment health has transitioned from Ok to Warning.
我能够启动一个简单的自动缩放组。但是,当我尝试设置应用程序负载均衡器以将流量定向到我的各个实例时,问题就出现了。首先,我创建了负载均衡器,这也很简单。问题在于创建目标群体和听众。在我的自动缩放组中,我
下面是我在云形成网络负载均衡器模板中使用的代码,您能帮助我吗 "TargetGroup": { "Type": "AWS::ElasticLoadBalancingV2::Ta
我有一个 CloudFormation 模板,用于创建 AWS::ElasticBeanstalk::Environment 和 AWS::ElasticLoadBalancingV2::Target
目标组创建失败,因为它未与 LoadBalancer 关联。但我使用参数显式传递它...这可能是一个策略问题吗? AWSTemplateFormatVersion: 2010-09-09 Descri
当我尝试使用 Ant Media Server 的 CloudFormation 模板安装集群时。我收到以下错误。 资源导入不支持资源类型:AWS::ElasticLoadBalancingV2::T
当我尝试使用 Ant Media Server 的 CloudFormation 模板安装集群时。我收到以下错误。 资源导入不支持资源类型:AWS::ElasticLoadBalancingV2::T
我是一名优秀的程序员,十分优秀!