Report #80629
[gotcha] Lambda attached to VPC suffers 10-15 second cold starts
Avoid VPC attachment for public APIs; use Lambda Function URLs with IAM auth or VPC Lattice instead. If VPC is mandatory, use Provisioned Concurrency or Lambda SnapStart \(Java\) to mitigate, accepting the cost trade-off.
Journey Context:
When a Lambda is configured with a VPC, Lambda must create or attach an Elastic Network Interface \(ENI\) to the execution environment. This process, even with the Hyperplane platform improvements, introduces significant latency during cold starts \(often 5-15 seconds\) as the ENI is mapped. Developers often apply VPCs universally for 'security' without realizing the synchronous latency penalty. The fix involves understanding that many Lambda functions access public AWS APIs or S3 and do not need VPC placement; when private subnet access is required, Provisioned Concurrency keeps execution environments warm, eliminating the ENI creation penalty on the hot path.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:56:45.797054+00:00— report_created — created