AWS elasticloadbalancing documentation change
Summary
Updated documentation to clarify default action configuration, added instructions for multiple target group weighting, and expanded examples for TCP listeners with multiple target groups in CLI/CloudFormation
Security assessment
Changes focus on configuration clarity and multi-target group support without mentioning security vulnerabilities, encryption, access controls, or other security-related aspects
Diff
diff --git a/elasticloadbalancing/latest/network/create-listener.md b/elasticloadbalancing/latest/network/create-listener.md index d13a98f4a..9b64a0180 100644 --- a//elasticloadbalancing/latest/network/create-listener.md +++ b//elasticloadbalancing/latest/network/create-listener.md @@ -13 +13 @@ A listener is a process that checks for connection requests. You define a listen - * You must specify a target group for the listener rule. For more information, see [Create a target group for your Network Load Balancer](./create-target-group.html). + * You must specify a target group for the default action. For more information, see [Create a target group for your Network Load Balancer](./create-target-group.html). @@ -49 +49,5 @@ Console - 6. For **Default action** , choose an available target group. If you don't have a target group that meets your needs, choose **Create target group** to create one now. For more information, see [Create a target group](./create-target-group.html). + 6. For **Default action** , select a target group to forward traffic to. + +To add another target group, choose **Add target group** and update the weights as needed. + +If you don't have a target group that meets your needs, choose **Create target group** to create one now. For more information, see [Create a target group](./create-target-group.html). @@ -63 +67 @@ Console - 10. Choose **Add**. + 10. (Optional) To add tags, expand **Listener tags**. Choose **Add new tag** and enter the tag key and tag value. @@ -65 +69,3 @@ Console - 11. [TLS listeners] To add certificates to the optional certificate list, see [Add certificates to the certificate list](./listener-update-certificates.html#add-certificates). + 11. Choose **Add**. + + 12. [TLS listeners] To add certificates to the optional certificate list, see [Add certificates to the certificate list](./listener-update-certificates.html#add-certificates). @@ -87,0 +94,19 @@ Use the [create-listener](https://docs.aws.amazon.com/cli/latest/reference/elbv2 +###### To add a TCP listener with multiple target groups + +Use the [create-listener](https://docs.aws.amazon.com/cli/latest/reference/elbv2/create-listener.html) command, specifying the TCP protocol, target groups, and weights. + + + aws elbv2 create-listener \ + --load-balancer-arn load-balancer-arn \ + --protocol TCP \ + --port 80 \ + --default-actions '[{ + "Type":"forward", + "ForwardConfig":{ + "TargetGroups":[ + {"TargetGroupArn":"target-group-1-arn","Weight":10}, + {"TargetGroupArn":"target-group-2-arn","Weight":30} + ] + } + }]' + @@ -141,0 +167,23 @@ Define a resource of type [AWS::ElasticLoadBalancingV2::Listener](https://docs.a +###### To add a TCP listener with multiple target groups + +Define a resource of type [AWS::ElasticLoadBalancingV2::Listener](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-elasticloadbalancingv2-listener.html) using the TCP protocol. + + + Resources: + myTCPListener: + Type: 'AWS::ElasticLoadBalancingV2::Listener' + Properties: + LoadBalancerArn: !Ref myLoadBalancer + Protocol: TCP + Port: 80 + DefaultActions: + - Type: forward + ForwardConfig: + TargetGroups: + - TargetGroupArn: !Ref myTargetGroup1, + Weight: 10 + - TargetGroupArn: !Ref myTargetGroup2, + Weight: 30 + TargetGroupStickinessConfig: + Enabled: true +