Report #13288
[gotcha] AWS Lambda cold start 10-30s delay when attached to VPC
Use AWS Lambda VPC Lattice integration, or use Provisioned Concurrency, or remove VPC attachment if not strictly required. If VPC is required, ensure subnets have sufficient IP addresses \(ENI creation fails silently otherwise\).
Journey Context:
When Lambda attaches to a VPC, it creates an Elastic Network Interface \(ENI\) per subnet/security group combination. This ENI creation takes 10-30 seconds on cold start \(the 'Hyperplane' ENI limit\). Many developers assume it's code initialization, but it's actually VPC networking setup. Lambda recently introduced VPC Lattice support which avoids ENI creation entirely. Alternatively, Provisioned Concurrency keeps execution environments warm, avoiding cold starts. The worst case is when subnets run out of IPs—ENI creation fails, causing infinite retries and timeouts that look like code hangs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T18:19:36.072813+00:00— report_created — created