AWS elasticloadbalancing documentation change
Summary
Expanded documentation for modifying listener rules including adding CloudFormation examples, restructuring console/CLI/CloudFormation sections, and adding new 'Update actions and conditions' section with detailed procedures
Security assessment
Changes focus on improving operational documentation for rule management without addressing security vulnerabilities or introducing security features. Updates include configuration examples and UI workflow improvements but no security advisories, authentication changes, or access control enhancements.
Diff
diff --git a/elasticloadbalancing/latest/application/edit-rule.md b/elasticloadbalancing/latest/application/edit-rule.md index f92e245dd..3bcc33cfb 100644 --- a//elasticloadbalancing/latest/application/edit-rule.md +++ b//elasticloadbalancing/latest/application/edit-rule.md @@ -5 +5 @@ -Modify the default actionReorder rulesManage the rule tags +Modify the default actionReorder rulesUpdate actions and conditionsManage the rule tags @@ -16,0 +17,2 @@ You can edit the action and conditions for a listener rule at any time. Rule upd + * Update actions and conditions + @@ -26 +28,4 @@ The default action is assigned to a rule named **Default**. You can keep the cur -###### To modify the default action using the console +Console + + +###### To modify the default action @@ -38 +43,11 @@ The default action is assigned to a rule named **Default**. You can keep the cur - 6. In the **Default action** section, update the rule as needed. + 6. Under **Default action** , update the authentication action and routing action as needed. + + + + +AWS CLI + + +###### To modify the default action + +Use the [modify-listener](https://docs.aws.amazon.com/cli/latest/reference/elbv2/modify-listener.html) command. The following example updates the target group for the `forward` action. @@ -40,0 +56,3 @@ The default action is assigned to a rule named **Default**. You can keep the cur + aws elbv2 modify-listener \ + --listener-arn listener-arn \ + --default-actions Type=forward,TargetGroupArn=new-target-group-arn @@ -41,0 +60 @@ The default action is assigned to a rule named **Default**. You can keep the cur +CloudFormation @@ -43 +61,0 @@ The default action is assigned to a rule named **Default**. You can keep the cur -###### To modify the default action using the AWS CLI @@ -45 +63,15 @@ The default action is assigned to a rule named **Default**. You can keep the cur -Use the [modify-listener](https://docs.aws.amazon.com/cli/latest/reference/elbv2/modify-listener.html) command. +###### To modify the default action + +Update the [AWS::ElasticLoadBalancingV2::Listener](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-elasticloadbalancingv2-listener.html) resource. + + + Resources: + myHTTPlistener: + Type: 'AWS::ElasticLoadBalancingV2::Listener' + Properties: + LoadBalancerArn: !Ref myLoadBalancer + Protocol: HTTP + Port: 80 + DefaultActions: + - Type: "forward" + TargetGroupArn: !Ref myNewTargetGroup @@ -51 +83,4 @@ Rules are evaluated in priority order, from the lowest value to the highest valu -###### To update rule priorities using the console +Console + + +###### To update rule priorities @@ -70 +105,4 @@ Rules are evaluated in priority order, from the lowest value to the highest valu -###### To update rule priorities using the AWS CLI +AWS CLI + + +###### To update rule priorities @@ -73,0 +112,78 @@ Use the [set-rule-priorities](https://docs.aws.amazon.com/cli/latest/reference/e + + aws elbv2 set-rule-priorities \ + --rule-priorities "RuleArn=listener-rule-arn,Priority=5" + +CloudFormation + + +###### To update rule priorities + +Update the [AWS::ElasticLoadBalancingV2::ListenerRule](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-elasticloadbalancingv2-listenerrule.html) resource. + + + Resources: + myListenerRule: + Type: 'AWS::ElasticLoadBalancingV2::ListenerRule' + Properties: + ListenerArn: !Ref myListener + Priority: 5 + Conditions: + - Field: host-header + Values: + - example.com + - www.example.com + Actions: + - Type: forward + TargetGroupArn: !Ref myTargetGroup + + +## Update actions and conditions + +You can update the actions and conditions for a rule. + +Console + + +###### To update rule actions and conditions + + 1. Open the Amazon EC2 console at [https://console.aws.amazon.com/ec2/](https://console.aws.amazon.com/ec2/). + + 2. In the navigation pane, choose **Load Balancers**. + + 3. Select the load balancer. + + 4. On the **Listeners and rules** tab, select the text in the **Protocol:Port** column to open the detail page for the listener. + + 5. On the **Rules** tab, select the listener rule and then choose **Actions** , **Edit rule**. + + 6. Update the rule actions and conditions as needed. For detailed steps, see [Add a rule](./add-rule.html). + + 7. Choose **Next**. + + 8. (Optional) Update the priority. + + 9. Choose **Next**. + + 10. Choose **Save changes**. + + + + +AWS CLI + + +###### To update rule actions and conditions + +Use the [modify-rule](https://docs.aws.amazon.com/cli/latest/reference/elbv2/modify-rule.html) command with the `--actions` option, the `--conditions` option, or both options. + +For examples of these options, see [Add a rule](./add-rule.html). + +CloudFormation + + +###### To update rule actions and conditions + +Update the [AWS::ElasticLoadBalancingV2::ListenerRule](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-elasticloadbalancingv2-listenerrule.html) resource. + +For example rules, see [Add a rule](./add-rule.html). + @@ -80 +196,4 @@ When you are finished with a tag, you can remove it. -###### To manage the tags for a rule using the console +Console + + +###### To manage the tags for a rule @@ -107 +226,28 @@ When you are finished with a tag, you can remove it. -###### To manage the tags for a rule using the AWS CLI +AWS CLI + + +###### To add tags to a rule + +Use the [add-tags](https://docs.aws.amazon.com/cli/latest/reference/elbv2/add-tags.html) command. + + + aws elbv2 add-tags \ + --resource-arns listener-rule-arn \ + --tags "Key=project,Value=lima" "Key=department,Value=digital-media" + +###### To remove tags from a rule + +Use the [remove-tags](https://docs.aws.amazon.com/cli/latest/reference/elbv2/remove-tags.html) command. + + + aws elbv2 remove-tags \ + --resource-arns listener-rule-arn \ + --tag-keys project department + +CloudFormation + + +###### To add tags to a rule + +Update the [AWS::ElasticLoadBalancingV2::ListenerRule](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-elasticloadbalancingv2-listenerrule.html) resource. + @@ -109 +255,19 @@ When you are finished with a tag, you can remove it. -Use the [add-tags](https://docs.aws.amazon.com/cli/latest/reference/elbv2/add-tags.html) and [remove-tags](https://docs.aws.amazon.com/cli/latest/reference/elbv2/remove-tags.html) commands. + Resources: + myListenerRule: + Type: 'AWS::ElasticLoadBalancingV2::ListenerRule' + Properties: + ListenerArn: !Ref myListener + Priority: 10 + Conditions: + - Field: host-header + Values: + - example.com + - www.example.com + Actions: + - Type: forward + TargetGroupArn: !Ref myTargetGroup + Tags: + - Key: 'project' + Value: 'lima'