aws ec2 create-network-insights-path
Creates a path to analyze for reachability. AWS CLI reference
1 example 11 options Its page in the AWS CLI reference
Examples
To create a path
The following create-network-insights-path example creates a path. The source is the specified internet gateway and the destination is the specified EC2 instance. To determine whether the destination is reachable using the specified protocol and port, analyze the path using the start-network-insights-analysis command.
aws ec2 create-network-insights-path --source igw-0797cccdc9d73b0e5 --destination i-0495d385ad28331c7 --destination-port 22 --protocol TCPIdentify--sourceThe ID or ARN of the source.--destinationThe ID or ARN of the destination.--destination-portThe destination port.--protocolThe protocol.Its output
{
"NetworkInsightsPath": {
"NetworkInsightsPathId": "nip-0b26f224f1d131fa8",
"NetworkInsightsPathArn": "arn:aws:ec2:us-west-2:123456789012:network-insights-path/nip-0b26f224f1d131fa8",
"CreatedDate": "2021-01-20T22:43:46.933Z",
"Source": "igw-0797cccdc9d73b0e5",
"Destination": "i-0495d385ad28331c7",
"Protocol": "tcp"
}
}For more information, see Getting started using the AWS CLI in the Reachability Analyzer Guide.
Options
--client-tokenUnique, case-sensitive identifier that you provide to ensure the idempotency of the request.--destination-ipThe IP address of the destination.--destination-portThe destination port.--destinationThe ID or ARN of the destination.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--filter-at-destinationScopes the analysis to network paths that match specific filters at the destination.--filter-at-sourceScopes the analysis to network paths that match specific filters at the source.--protocolThe protocol.--source-ipThe IP address of the source.--sourceThe ID or ARN of the source.--tag-specificationsThe tags to add to the path.