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
-
Open the Amazon VPC console at https://console.aws.amazon.com/vpc/
. -
In the Region selector, choose the AWS Region that you used when you created the mirror target.
-
On the navigation pane, choose Traffic Mirroring, Mirror targets.
-
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. -
To create a target, choose Create traffic mirror target.
-
(Optional) For Name tag, enter a name for the traffic mirror target.
-
(Optional) For Description, enter a description for the traffic mirror target.
-
For Target type, choose the type of the traffic mirror target:
Network interface
Network Load Balancer
Gateway Load Balancer endpoint
-
For Target, choose the traffic mirror target. We display targets based on the target type that you selected in the previous step.
-
(Optional) For each tag to add, choose Add new tag and enter the tag key and tag value.
-
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.