Amazon Virtual Private Cloud
Traffic Mirroring

Traffic Mirror Targets

A target is the destination for a traffic mirror session.

The traffic mirror target can be an elastic network interface, or a Network Load Balancer. After you create a target, assign it to a traffic mirror session. For more information, see Create a Traffic Mirror Session.

You must configure a security group for the traffic mirror target that allows VXLAN traffic from the source to the target.

You can share a traffic mirror target across accounts. To share a traffic mirror target, create the target, and then share the target. For more information, see Sharing a Traffic Mirror Target.

Create a Traffic Mirror Target

Create a traffic mirror target.

To create 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 VPCs.

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

  4. Choose Create Traffic Mirror Target.

  5. For Name tag, enter a name for the traffic mirror target.

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

  7. For Target type, choose the traffic mirror target type.

  8. For Target, choose the traffic mirror target.

  9. (Optional) Add or remove a tag.

    [Add a tag] Choose Add tag and do the following:

    • For Key, enter the key name.

    • For Value, enter the key value.

    [Remove a tag] Next to the tag, choose Remove tag.

  10. Choose Create.

To create a traffic mirror target using the AWS CLI

Use the create-traffic-mirror-target command.

Modify Traffic Mirror Target Tags

Add a tag to the traffic mirror target, or remove a tag from the traffic mirror target.

To modify your traffic mirror targets 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 traffic mirror target.

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

  4. Select the traffic mirror target.

  5. Choose Tags, Manage tags.

  6. Add or remove a tag.

    [Add a tag] Choose Add tag, and then do the following:

    • For Key, enter the key name.

    • For Value, enter the key value.

    [Remove a tag] Next to the tag, choose Remove tag.

  7. Choose Save changes.

View Traffic Mirror Target Details

View the traffic mirror target details.

To view your traffic mirror targets 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 traffic mirror target

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

  4. Select the traffic mirror target.

To view your traffic mirror targets using the AWS CLI

Use the describe-traffic-mirror-targets command.

Delete a Traffic Mirror Target

Before you delete a traffic mirror target, pause all traffic mirror sessions that use the traffic mirror target.

To delete your 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 traffic mirror target.

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

  4. Select the traffic mirror target.

  5. Choose Delete.

  6. In the Delete confirmation dialog box, enter delete, and then choose Delete.

To delete a traffic mirror target using the AWS CLI

Use the delete-traffic-mirror-target command.