Skip to main content

AWS PrivateLink ExecModule

Overview​

AwsPrivateLinkModule reads the VPC endpoints visible to an AWS connection and discovers services available for new VPC endpoints. Use it to compare a VPC's configured endpoints with an approved inventory, check AWS-reported endpoint state during triage, or check whether a service is available before proposing a network change.

AWS PrivateLink lets workloads use interface VPC endpoints to connect privately to supported services. The VPC endpoint inventory can also contain other endpoint types, such as gateway endpoints. The module reports configuration from the EC2 control plane. Verify actual connectivity separately. AWS PrivateLink overview

Usage​

  1. Set up an AWS PrivateLink connection in the Integration Account Console. Verify it and confirm its status is READY.
  2. In Workflow Studio, add AWS PrivateLink to a task and select the connection under General > Connection.
  3. Choose an operation and AWS region. To check one VPC, choose describe_vpc_endpoints and supply its vpcId.
  4. Check status before consuming results. If hasMore is true, pass nextToken to another invocation with the same connection, operation, region, filters, and page size.

Inputs​

InputTypeRequiredDefaultPurpose
operationstringNodescribe_vpc_endpointsChoose describe_vpc_endpoints or describe_vpc_endpoint_services.
regionstringYes—Commercial AWS or AWS GovCloud region for the EC2 API request.
vpcIdstringNo—Limit endpoint inventory to the specified VPC, for example vpc-0123456789abcdef0. Applies only to describe_vpc_endpoints.
serviceNamestringNo—Exact AWS service name for either operation, for example com.amazonaws.us-west-2.logs.
pageSizeintegerNo100Request 5–1,000 results per provider page.
nextTokenstringNo—Opaque continuation token from the preceding page.

Outputs​

OutputMeaning
statussuccess or error.
operation / regionRecognized operation and AWS region when available.
vpcEndpointsEndpoint rows with vpcEndpointId and available vpcId, serviceName, vpcEndpointType, state, ipAddressType, and privateDnsEnabled.
endpointServicesService rows with serviceName and available serviceRegion, serviceTypes, acceptanceRequired, and vpcEndpointPolicySupported.
hasMore / nextTokenWhether AWS reports another page and the token to continue.
requestIdAWS request reference when available.
errorRedacted error with code, message, retryable, and an optional httpStatus.

A successful response includes the row collection for the chosen operation. An empty collection is valid. When a row has a serviceName, you can use the name to compare endpoint inventory with service discovery results. An endpoint can represent another target type without a service name.

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 uses AWS Signature Version 4 with that key pair. Use access key pairs without a session token.

Grant ec2:DescribeVpcEndpoints to read endpoints and ec2:DescribeVpcEndpointServices to discover available services. Grant only the actions the workflow calls. These actions use Resource: "*" in the IAM policy and support an ec2:Region condition to limit request regions. Amazon EC2 service authorization

Configuration​

The module selects the standard regional EC2 HTTPS endpoint. Run separate queries for each approved AWS connection and region. Store credentials in the connection, and scope access to workflow output because endpoint IDs and service relationships reveal details of your infrastructure.

Operations​

  • describe_vpc_endpoints reads one page of existing endpoint summaries visible to the selected AWS connection. Filter by VPC, service name, or both. Use the returned state and private DNS flag to review the configuration AWS reports. AWS DescribeVpcEndpoints API
  • describe_vpc_endpoint_services reads one page of services available to the selected AWS connection. Supply serviceName to look up a specific service. Use the service type, acceptance requirement, and endpoint policy support to prepare a change review. AWS DescribeVpcEndpointServices API

Errors and Failure Modes​

  • For VALIDATION_ERROR, check the operation, region, filter fields, page size, and continuation token.
  • For INTEGRATION_ACCOUNT_ERROR, check the connection's provider, status, verification, and protected key fields.
  • For DESTINATION_DENIED, check the region and workflow network policy.
  • For an AWS provider error, check the IAM action, account, and region. Use the AWS request ID for investigation when available.
  • For INVALID_PROVIDER_RESPONSE, inspect the workflow run before repeating the page.
  • For failures marked retryable, such as throttling or transient network errors, back off before retrying the workflow.

Example​

A scheduled workflow can check whether a workload VPC has a CloudWatch Logs interface endpoint and flag a mismatch against the approved configuration.

{
"operation": "describe_vpc_endpoints",
"region": "us-west-2",
"vpcId": "vpc-0123456789abcdef0",
"serviceName": "com.amazonaws.us-west-2.logs",
"pageSize": 25
}

A successful final page might look like this.

{
"status": "success",
"operation": "describe_vpc_endpoints",
"region": "us-west-2",
"vpcEndpoints": [
{
"vpcEndpointId": "vpce-023456789abcdef01",
"vpcId": "vpc-0123456789abcdef0",
"serviceName": "com.amazonaws.us-west-2.logs",
"vpcEndpointType": "Interface",
"state": "available",
"ipAddressType": "ipv4",
"privateDnsEnabled": true
}
],
"hasMore": false
}

Collect all pages before flagging an endpoint as missing. A branch can route unexpected state or private DNS settings to the network owner. Use describe_vpc_endpoint_services with the same service name when planning a new endpoint.

Notes​

  • AWS can return fewer rows than requested. Continue based on hasMore, including after an empty page.
  • EC2 API throttling and eventual consistency can affect scans. Pace concurrent reads across accounts and regions, and allow time for recent changes to appear. AWS EC2 API throttling
  • Both operations are read-only and safe to repeat. Endpoint creation, updates, acceptance, and deletion are outside the connector's scope.
  • Treat private DNS status and endpoint state as inventory signals. Application reachability, DNS resolution, and endpoint policy contents require separate checks.