Skip to main content

AWS Reachability Analyzer ExecModule

Overview​

AwsReachabilityAnalyzerModule brings stored AWS Reachability Analyzer paths and results into ValkyrAI workflows. Use it to check which connectivity paths a team tracks, attach an existing result to a change review, or gather configuration evidence during incident triage.

Reachability Analyzer models AWS network configuration for a source and destination in the same region. A stored result reflects the configuration evaluated when the analysis ran. Check live traffic and application health separately. How AWS Reachability Analyzer works

Usage​

  1. Set up an AWS Reachability Analyzer connection in the Integration Account Console. Verify it and confirm its status is READY.
  2. In Workflow Studio, add AWS Reachability Analyzer to a task and select the connection under General > Connection.
  3. Choose the AWS region. Read paths with describe_network_insights_paths, then use a returned path ID with describe_network_insights_analyses to fetch its stored analyses.
  4. Check status before consuming results. If hasMore is true, pass the returned nextToken into another invocation with the same connection, operation, region, path ID when applicable, and page size.

Inputs​

InputTypeRequiredPurpose
operationstringNoDefaults to describe_network_insights_paths. Choose describe_network_insights_analyses to read stored analysis results.
regionstringYesCommercial AWS or AWS GovCloud region where Reachability Analyzer is available, for example us-west-2.
pathIdsarray of stringsNoList of 1–100 unique nip- IDs for path lookup. Omit for regional path inventory.
pathIdstringOne selector required for analysesSingle nip- ID for a path's analyses. Use it alone as the analysis selector.
analysisIdsarray of stringsOne selector required for analysesList of 1–100 unique nia- IDs for analysis lookup. Use it alone as the analysis selector.
pageSizeintegerNoRequest 1–100 results in a provider page for regional path inventory or a single path's analyses. Defaults to 100.
nextTokenstringNoOpaque token from the preceding page of the same query.

Explicit ID lists return a single result set. The module ignores the configured page size and rejects nextToken in this mode. Apply any other workflow filters to the returned rows.

Outputs​

OutputMeaning
statussuccess or error.
operation / regionThe operation and AWS region used for the request when available.
pathsPath summaries with networkInsightsPathId and available source, destination, sourceIp, destinationIp, protocol, destinationPort, and createdDate.
analysesAnalysis summaries with networkInsightsAnalysisId and available networkInsightsPathId, status, networkPathFound, and startDate.
countNumber of summaries returned by this invocation.
hasMore / nextTokenWhether AWS reports another page and the opaque token to continue.
requestIdAWS request reference when available.
fetchedAtWhen the connector retrieved the results, as an ISO 8601 timestamp.
errorRedacted failure details with code, message, retryable, and an optional httpStatus.

An empty result is valid. Row timestamps use ISO 8601. Analysis row status is running, succeeded, or failed when available. An analysis can succeed and report networkPathFound: false. If AWS omits the reachability result, treat it as unknown. The connector returns summary fields, and the AWS console can provide full hop-by-hop details and explanations.

IntegrationAccount Requirements​

Use a verified, READY IntegrationAccount with account name AWS. Store the key pair in the protected AWS Access Key ID and AWS Secret Access Key fields. The module signs requests with AWS Signature Version 4 using that key pair. Use an access key pair without a session token.

Grant ec2:DescribeNetworkInsightsPaths for paths and ec2:DescribeNetworkInsightsAnalyses for stored results. Grant only the actions that the workflow uses. These two actions require Resource: "*" because AWS does not support resource-level permissions for them. Reachability Analyzer IAM actions and resources

Configuration​

The module uses the standard regional EC2 HTTPS endpoint. Run a separate query for each approved connection and region. Keep credentials in the connection and control access to workflow output because path and analysis identifiers can reveal infrastructure details.

Operations​

  • describe_network_insights_paths reads a page of stored path definitions visible to the selected account in the region. Use pathIds to retrieve known paths for a review or incident workflow. AWS DescribeNetworkInsightsPaths API
  • describe_network_insights_analyses reads stored analysis results for one path or for a list of known analysis IDs. Use the single path selector to page through that path's history, or supply analysis IDs saved with a ticket to retrieve those records directly. AWS DescribeNetworkInsightsAnalyses API

Errors and Failure Modes​

  • For VALIDATION_ERROR, check the operation, region, ID prefixes and types, selector requirements, and pagination settings.
  • For INTEGRATION_ACCOUNT_ERROR, verify the IntegrationAccount provider, status, verification, and protected key fields.
  • For DESTINATION_DENIED, check the requested region and the workflow's network policy.
  • For an AWS error such as AWS_EC2_HTTP_403, check the selected account and IAM action. Use the AWS request ID when available.
  • For INVALID_PROVIDER_RESPONSE, inspect the workflow run before repeating the request.
  • Back off before retrying a transient failure such as EC2 throttling. Correct input and permission errors before repeating the request.

Example​

A network team has an approved path from a workload network interface to a database network interface. During triage, a workflow can look up prior analyses for the path and pass the result and timestamp to the incident owner.

{
"operation": "describe_network_insights_analyses",
"region": "us-west-2",
"pathId": "nip-0123456789abcdef0",
"pageSize": 25
}

A successful final page might look like this.

{
"status": "success",
"operation": "describe_network_insights_analyses",
"region": "us-west-2",
"analyses": [
{
"networkInsightsAnalysisId": "nia-023456789abcdef01",
"networkInsightsPathId": "nip-0123456789abcdef0",
"status": "succeeded",
"networkPathFound": false,
"startDate": "2026-10-22T14:31:00Z"
}
],
"count": 1,
"fetchedAt": "2026-10-22T15:04:00Z",
"hasMore": false
}

The result shows that AWS successfully completed the analysis and found no feasible path at the time. An incident workflow can share the analysis ID and start time so the owner can open the underlying analysis in AWS. Continue through all available pages before concluding that a stored analysis is absent.

Notes​

  • AWS can return fewer rows than the requested page size, including zero rows with a continuation token. Follow nextToken until AWS stops returning it. EC2 query pagination
  • Both operations are read-only and safe to repeat. Creating or deleting paths, starting new analyses, and changing AWS network configuration are outside the connector's scope.
  • Pace concurrent reads across connections and regions to avoid EC2 throttling. AWS EC2 API throttling
  • AWS automatically deletes analyses 120 days after creation. Use your own approved evidence retention when you need older results. AWS Reachability Analyzer considerations