Report #38889
[gotcha] Why does my Lambda function have 10\+ second cold start latency only when connected to a VPC?
Use Provisioned Concurrency to keep ENIs warm, or rearchitect to avoid VPC attachment \(use VPC endpoints for AWS services instead\). Do not rely on warming invocations—they fail under ENI creation limits which are account-wide.
Journey Context:
When a Lambda connects to a VPC, AWS must create an Elastic Network Interface \(ENI\) in each configured subnet. Unlike regular cold starts \(milliseconds\), ENI creation takes 5-15 seconds and counts against a regional quota \(default 350 ENIs per region\). 'Warming' strategies fail because the ENI is bound to the execution environment lifecycle, not the invocation frequency; concurrent invocations can exhaust the ENI quota entirely, serializing subsequent invocations behind ENI creation. AWS Hyperplane was supposed to solve this with 'pre-created' ENIs, but latency remains under scale-out. The only reliable fixes are Provisioned Concurrency \(which keeps execution environments and their ENIs permanently hot\) or eliminating the ENI requirement entirely by removing the VPC configuration and using VPC Endpoints \(PrivateLink\) for AWS service calls, or placing the Lambda outside the VPC and using AWS Secrets Manager/IAM for database credentials instead of VPC-based RDS.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:45:08.327271+00:00— report_created — created