Edit a listener rule for your Application Load Balancer
You can edit the action and conditions for a listener rule at any time. Rule updates do not take effect immediately, so requests could be routed using the previous rule configuration for a short time after you update a rule. Any in-flight requests are completed.
Modify the default action
The default action is assigned to a rule named Default. You can keep the current rule type and change the required information, or you can change the rule type and provide the new required information.
To modify the default action using the console
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
On the navigation pane, choose Load Balancers.
-
Select the load balancer.
-
On the Listeners and rules tab, select the text in the Protocol:Port column to open the detail page for the listener.
-
On the Rules tab, in the Listener rules section, select the checkbox for the default rule. Choose Actions, then Edit rule.
-
In the Default action section, update the rule as needed.
To modify the default action using the AWS CLI
Use the modify-listener command.
Update rule priorities
Rules are evaluated in priority order, from the lowest value to the highest value. The default rule is evaluated last. You can change the priority of a nondefault rule at any time. You can't change the priority of the default rule.
To update rule priorities using the console
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the navigation pane, choose Load Balancers.
-
Select the load balancer.
-
On the Listeners and rules tab, select the text in the Protocol:Port column to open the detail page for the listener.
-
On the Rules tab, select the listener rule and then choose Actions, Reprioritize rules.
-
In the Listener rules section, the Priority column displays the current rule priorities. To update a rule priority, enter a value from 1-50,000.
-
Choose Save changes.
To update rule priorities using the AWS CLI
Use the set-rule-priorities command.
Manage the rule tags
Tags help you to categorize your listeners and rules in different ways. For example, you can tag a resource by purpose, owner, or environment. Tag keys must be unique for each rule. If you add a tag with a key that is already associated with the rule, it updates the value of that tag.
When you are finished with a tag, you can remove it.
To manage the tags for a rule using the console
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the navigation pane, choose Load Balancers.
-
Choose the name of the load balancer to open its details page.
-
On the Listeners and rules tab, select the text in the Protocol:Port column to open the detail page for the listener.
-
On the Rules tab, select the text in the Name tag column to open the detail page for the rule.
-
On the rule details page, choose Manage tags.
-
On the Manage tags page, do one or more of the following:
-
To add a tag, choose Add new tag and enter values for Key and Value.
-
To delete a tag, choose Remove next to the tag.
-
To update a tag, enter new values for Key or Value.
-
-
Choose Save changes.
To manage the tags for a rule using the AWS CLI
Use the add-tags and remove-tags commands.