Skip to content

Resource: awsEc2TrafficMirrorFilter

Provides an Traffic mirror filter.\ Read limits and considerations for traffic mirroring

Example Usage

To create a basic traffic mirror filter

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.ec2TrafficMirrorFilter.Ec2TrafficMirrorFilter(this, "foo", {
  description: "traffic mirror filter - terraform example",
  networkServices: ["amazon-dns"],
});

Argument Reference

The following arguments are supported:

  • description - (Optional, Forces new resource) A description of the filter.
  • networkServices - (Optional) List of amazon network services that should be mirrored. Valid values: amazonDns.
  • tags - (Optional) Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - The ARN of the traffic mirror filter.
  • id - The name of the filter.
  • tagsAll - A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

Traffic mirror filter can be imported using the id, e.g.,

$ terraform import aws_ec2_traffic_mirror_filter.foo tmf-0fbb93ddf38198f64