Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Delete a listener rule
You can delete a non-default listener rule at any time. You cannot delete
the default rule. When you delete a rule, traffic that was matched by the
deleted rule is routed according to the remaining rules or the default
action.
- Console
-
To delete a listener rule
Open the Amazon EC2 console at
https://console.amazonaws.cn/ec2/.
-
In the navigation pane, choose Load Balancers.
-
Choose the name of the load balancer to open its detail page.
-
On the Listeners and rules tab, choose the text in the
Protocol:Port column to open the detail page for
the listener.
-
On the Rules tab, select the check box for
the rule to delete, and then choose Actions,
Delete rule.
-
When prompted for confirmation, choose
Delete.
- Amazon CLI
-
To delete a listener rule
Use the following
delete-rule command to delete a rule.
aws elbv2 delete-rule \
--rule-arn rule-arn