» Resource: aws_ec2_traffic_mirror_filter

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

» Example Usage

To create a basic traffic mirror filter

resource "aws_ec2_traffic_mirror_filter" "foo" {
  description      = "traffic mirror filter - terraform example"
  network_services = ["amazon-dns"]
}

» Argument Reference

The following arguments are supported:

  • description - (Optional, Forces new resource) A description of the filter.
  • network_services - (Optional) List of amazon network services that should be mirrored. Valid values: amazon-dns.
  • tags - (Optional) Key-value mapping of resource tags.

» Attributes Reference

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

  • id - The name of the filter.

» Import

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

$ terraform import aws_ec2_traffic_mirror_filter.foo tmf-0fbb93ddf38198f64