pulumi_wasm_providers_aws_mini::ec2

Module traffic_mirror_target

source
Expand description

Provides a Traffic mirror target. Read limits and considerations for traffic mirroring

§Example Usage

To create a basic traffic mirror session

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let eni = traffic_mirror_target::create(
        "eni",
        TrafficMirrorTargetArgs::builder()
            .description("ENI target")
            .network_interface_id("${test.primaryNetworkInterfaceId}")
            .build_struct(),
    );
    let gwlb = traffic_mirror_target::create(
        "gwlb",
        TrafficMirrorTargetArgs::builder()
            .description("GWLB target")
            .gateway_load_balancer_endpoint_id("${example.id}")
            .build_struct(),
    );
    let nlb = traffic_mirror_target::create(
        "nlb",
        TrafficMirrorTargetArgs::builder()
            .description("NLB target")
            .network_load_balancer_arn("${lb.arn}")
            .build_struct(),
    );
}

§Import

Using pulumi import, import traffic mirror targets using the id. For example:

$ pulumi import aws:ec2/trafficMirrorTarget:TrafficMirrorTarget target tmt-0c13a005422b86606

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments