This template creates a Traffic Mirror Filter and a Traffic Mirror filter rule for inbound UDP traffic. The rule has a description and specifies the traffic direction as ingress. The rule number is set to 10, and it filters traffic with a destination CIDR block and source CIDR block both set to 10.0.0.0/16. The rule action is set to accept, and the protocol is set to 17 (UDP). The source port range is set from 10 to 50, and the destination port range is set from 50 to 100.

SampleTrafficMirrorFilterRule
AWS::EC2::TrafficMirrorFilterRule


DestinationPortRange
SourcePortRange

TrafficMirrorFilter
AWS::EC2::TrafficMirrorFilter


CloudFormation Template

Share Template