错误,LoadBalancerAttributes属性的值必须是List类型。LoadBalancerAttributes属性的值必须是List类型。
我按照云的形成文档设置了属性,但还是出现了错误。
谁能知道这个问题,我哪里出了问题?
如何修复模板
Resources:
IAPILoadBalancerListener:
Type: AWS::ElasticLoadBalancingV2::Listener
Properties:
DefaultActions:
- TargetGroupArn: !Ref IAPIBlueTargetGroup
Type: forward
LoadBalancerArn: !Ref IAPILoadBalancer
Port: !Ref LoadBalancerPort
Protocol: TCP
IAPILoadBalancer:
Type: AWS::ElasticLoadBalancingV2::LoadBalancer
Properties:
LoadBalancerAttributes:
access_logs.s3.bucket: xxxxxxxx
access_logs.s3.prefix: xxxxxxxx
access_logs.s3.enabled: false
deletion_protection.enabled: fasle
Name: NLB
Scheme: internal
Subnets:
- !Ref PrivateRailA
- !Ref PrivateRailB
Type: network
Tags:
- Key: "platform_name"
Value: "nx"```
负载平衡器属性(LoadBalancerAttributes) 应该有不同的形式。
请看以下内容。
LoadBalancerAttributes:
- Key: access_logs.s3.bucket
Value: xxxxxxxx
- Key: access_logs.s3.prefix
Value: xxxx
- Key: access_logs.s3.enabled
Value: false
- Key: deletion_protection.enabled
Value: false