lambda in vpc times out
lambda-vpc-egress-path-traceSend the function's VPC configuration and the VPC's subnets, route tables, NAT gateways, endpoints and security groups. Traces the call to the internet, an AWS service or a VPC resource from every function subnet separately, so intermittent timeouts caused by one misrouted subnet are identified. Returns each broken hop (public subnet without public address, NAT in the wrong subnet, blackhole route, endpoint without private DNS, group rules) with the command that fixes it. Use when the error reads: Task timed out after seconds in a VPC attached function | connect ETIMEDOUT | Connect timeout on endpoint URL | timeouts on only some invocations. Covers: IPv4 paths inside one VPC from supplied describe output. Network ACLs, DNS, endpoint policies, peering and transit gateway hops beyond the VPC are not evaluated. Price: 4.00 USDC on Base via x402, charged only when the case is solved.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"region": "<region>",
"function": "<function>",
"destination": "<destination>",
"subnets": "<subnets>",
"route_tables": "<route_tables>",
"security_groups": "<security_groups>"
},
"name": "lambda-vpc-egress-path-trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | Yes | ||
| subnets | Yes | Subnets from aws ec2 describe-subnets for the function's VPC. | |
| function | Yes | VpcConfig from aws lambda get-function-configuration. | |
| destination | Yes | ||
| nat_gateways | No | NatGateways from aws ec2 describe-nat-gateways. | |
| route_tables | Yes | RouteTables from aws ec2 describe-route-tables --filters Name=vpc-id,Values=VPC_ID. | |
| vpc_endpoints | No | VpcEndpoints from aws ec2 describe-vpc-endpoints --filters Name=vpc-id,Values=VPC_ID. | |
| security_groups | Yes | SecurityGroups from aws ec2 describe-security-groups for the function groups, endpoint groups and destination groups. |