Provides an Traffic mirror filter.
Read limits and considerations for traffic mirroring
To create a basic traffic mirror filter
resource "aws_ec2_traffic_mirror_filter" "foo" {
description = "traffic mirror filter - terraform example"
network_services = ["amazon-dns"]
}
This resource supports the following arguments:
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 map of resource tags. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
arn
- The ARN of the traffic mirror filter.id
- The name of the filter.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import traffic mirror filter using the id
. For example:
import {
to = aws_ec2_traffic_mirror_filter.foo
id = "tmf-0fbb93ddf38198f64"
}
Using terraform import
, import traffic mirror filter using the id
. For example:
% terraform import aws_ec2_traffic_mirror_filter.foo tmf-0fbb93ddf38198f64