1 個回答
- 最新
- 最多得票
- 最多評論
2
Hello.
How about setting "AvailabilityZone: all" as shown below?
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetdescription.html
TargetGroup1:
Type: AWS::ElasticLoadBalancingV2::TargetGroup
Properties:
HealthCheckEnabled: true
HealthCheckIntervalSeconds: 30
HealthCheckPort: traffic-port
HealthCheckProtocol: TCP
HealthyThresholdCount: 5
IpAddressType: ipv4
Name: !Sub ${SystemPrefix}-${Environment}-tg
Port: 80
Protocol: TCP
TargetGroupAttributes:
- Key: preserve_client_ip.enabled
Value: false
Targets:
- AvailabilityZone: all
Id: !Ref TargetIP
Port: 80
TargetType: ip
UnhealthyThresholdCount: 2
VpcId: !Ref VPCID
相關內容
- 已提問 1 年前
- AWS 官方已更新 2 年前