Beispiel #1
0
 public MyStack()
 {
     var nlb = new Aws.Ec2.TrafficMirrorTarget("nlb", new Aws.Ec2.TrafficMirrorTargetArgs
     {
         Description            = "NLB target",
         NetworkLoadBalancerArn = aws_lb.Lb.Arn,
     });
     var eni = new Aws.Ec2.TrafficMirrorTarget("eni", new Aws.Ec2.TrafficMirrorTargetArgs
     {
         Description        = "ENI target",
         NetworkInterfaceId = aws_instance.Test.Primary_network_interface_id,
     });
 }
Beispiel #2
0
 public MyStack()
 {
     var filter = new Aws.Ec2.TrafficMirrorFilter("filter", new Aws.Ec2.TrafficMirrorFilterArgs
     {
         Description     = "traffic mirror filter - example",
         NetworkServices =
         {
             "amazon-dns",
         },
     });
     var target = new Aws.Ec2.TrafficMirrorTarget("target", new Aws.Ec2.TrafficMirrorTargetArgs
     {
         NetworkLoadBalancerArn = aws_lb.Lb.Arn,
     });
     var session = new Aws.Ec2.TrafficMirrorSession("session", new Aws.Ec2.TrafficMirrorSessionArgs
     {
         Description           = "traffic mirror session - example",
         NetworkInterfaceId    = aws_instance.Test.Primary_network_interface_id,
         TrafficMirrorFilterId = filter.Id,
         TrafficMirrorTargetId = target.Id,
     });
 }