Create or delete a traffic mirror target - Amazon Virtual Private Cloud

Create or delete a traffic mirror target

A traffic mirror target is the destination for mirrored traffic. For more information, see Understand traffic mirror target concepts.

Before you can delete a traffic mirror target, you must remove it from any traffic mirror sessions.

To create or delete a traffic mirror target using the console
  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. In the Region selector, choose the AWS Region that you used when you created the mirror target.

  3. On the navigation pane, choose Traffic Mirroring, Mirror targets.

  4. To delete a target, select the traffic mirror target and choose Delete.

    When prompted for confirmation, enter delete, and then choose Delete. The deletion process is complete.

  5. To create a target, choose Create traffic mirror target.

  6. (Optional) For Name tag, enter a name for the traffic mirror target.

  7. (Optional) For Description, enter a description for the traffic mirror target.

  8. For Target type, choose the type of the traffic mirror target:

    • Network interface

    • Network Load Balancer

    • Gateway Load Balancer endpoint

  9. For Target, choose the traffic mirror target. We display targets based on the target type that you selected in the previous step.

  10. (Optional) For each tag to add, choose Add new tag and enter the tag key and tag value.

  11. Choose Create.

After you create a target, assign it to a traffic mirror session. For more information, see Create, modify, or delete a traffic mirror session.

You must configure a security group for the traffic mirror target that allows VXLAN traffic (UDP port 4789) from the traffic mirror source.

You can share a traffic mirror target across accounts. For more information, see Share a traffic mirror target.

To create a traffic mirror target using the AWS CLI

Use the create-traffic-mirror-target command.

To delete a traffic mirror target using the AWS CLI

Use the delete-traffic-mirror-target command.