Tags for your listeners and rules - Elastic Load Balancing

Tags for your listeners and rules

Tags help you to categorize your listeners and rules in different ways. For example, you can tag a resource by purpose, owner, or environment.

You can add multiple tags to each listener and rule. Tag keys must be unique for each listener and rule. If you add a tag with a key that is already associated with the listener and rule, it updates the value of that tag.

When you are finished with a tag, you can remove it.

Restrictions
  • Maximum number of tags per resource—50

  • Maximum key length—127 Unicode characters

  • Maximum value length—255 Unicode characters

  • Tag keys and values are case-sensitive. Allowed characters are letters, spaces, and numbers representable in UTF-8, plus the following special characters: + - = . _ : / @. Do not use leading or trailing spaces.

  • Do not use the aws: prefix in your tag names or values because it is reserved for AWS use. You can't edit or delete tag names or values with this prefix. Tags with this prefix do not count against your tags per resource limit.

Update listener tags

To update the tags for a listener using the console
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. On the navigation pane, under Load Balancing, choose Load Balancers.

  3. Choose the name of the load balancer that contains the listener you want to update, to open its details page.

  4. On the Listeners and rules tab, do one of the following:

    1. Select the text in the Protocol:Port column to open the detail page for the listener.

      On the Tags tab, choose Manage tags.

    2. Select the listener you want to update tags on.

      Choose Manage listener, then Manage tags.

    3. Select the text in the Tags column to open the listener details page, on the tags tab.

      Choose Manage tags.

  5. On the Manage tags page, do one or more of the following:

    1. To update a tag, enter new values for Key and Value.

    2. To add a tag, choose Add new tag and enter values for Key and Value.

    3. To delete a tag, choose Remove next to the tag.

  6. When you have finished updating tags, choose Save changes.

To update the tags for a listener using the AWS CLI

Use the add-tags and remove-tags commands.

Update rule tags

To update the tags for a rule using the console
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. On the navigation pane, under Load Balancing, choose Load Balancers.

  3. Choose the name of the load balancer that contains the rule you want to update, to open its details page.

  4. On the Listeners and rules tab, select the text in the Protocol:Port column of the listener containing the rule you want to update, to open the detail page of the listener

  5. On the listener details page, do one of the following:

    1. Select the text in the Name tag column to open the detail page for the rule.

      On the rule details page, choose Manage tags.

    2. Select the text in the Tags column for the rule you want to update.

      In the tags summary pop up choose Manage tags.

  6. On the Manage tags page, do one or more of the following:

    1. To update a tag, enter new values for Key and Value.

    2. To add a tag, choose Add new tag and enter values for Key and Value.

    3. To delete a tag, choose Remove next to the tag.

  7. When you have finished updating tags, choose Save changes.

To update the tags for a rule using the AWS CLI

Use the add-tags and remove-tags commands.