Report #52330
[gotcha] Lambda VPC cold start hangs with 'Task timed out' during scale-up despite low latency at steady state
Avoid VPC for Lambda if possible \(use Function URLs, API Gateway, or VPC Lattice\); if VPC is mandatory, allocate /28 subnets per function and use Provisioned Concurrency to pre-warm ENIs, or migrate to VPC Lattice targets which bypass ENI creation
Journey Context:
Attaching a Lambda to a VPC forces the Lambda service to create an Elastic Network Interface \(ENI\) in your subnet. ENI creation is not part of the cold start latency most people measure; it can take 30-90 seconds during scale-up events, causing timeouts that look like application hangs. Furthermore, these ENIs persist indefinitely \(until function deletion\), silently consuming IPs in your subnets and causing 'no free IP' exhaustion errors when scaling other services. Most tutorials suggest VPC for 'security' without warning that Lambda in VPC uses a completely different networking path than EC2.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:19:39.854212+00:00— report_created — created