1 Answer
- Newest
- Most votes
- Most comments
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
Relevant content
- Accepted Answerasked 4 years ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago