Resource: aws_ec2_network_insights_analysis

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

Example Usage

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

resource "aws_ec2_network_insights_analysis" "analysis" {
  network_insights_path_id = aws_ec2_network_insights_path.path.id
}

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:

The alternate_path_hints object supports the following:

Import

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

import {
  to = aws_ec2_network_insights_analysis.test
  id = "nia-0462085c957f11a55"
}

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

% terraform import aws_ec2_network_insights_analysis.test nia-0462085c957f11a55