Resource: aws_ec2_network_insights_path

Provides a Network Insights Path resource. Part of the "Reachability Analyzer" service in the AWS VPC console.

Example Usage

resource "aws_ec2_network_insights_path" "test" {
  source      = aws_network_interface.source.id
  destination = aws_network_interface.destination.id
  protocol    = "tcp"
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Network Insights Paths using the id. For example:

import {
  to = aws_ec2_network_insights_path.test
  id = "nip-00edfba169923aefd"
}

Using terraform import, import Network Insights Paths using the id. For example:

% terraform import aws_ec2_network_insights_path.test nip-00edfba169923aefd