Report #4400
[gotcha] Lambda function in VPC has multi-second cold start despite small package size
Avoid VPC if not strictly required; if VPC is required, use AWS PrivateLink endpoints instead of NAT Gateway for AWS service access, or use Provisioned Concurrency to keep execution environments warm. Note that VPC Lambda creates ENI during cold start.
Journey Context:
Many developers assume cold starts are only about package size and init code. When you attach a Lambda to a VPC, Lambda must create an Elastic Network Interface \(ENI\) in a subnet, which requires waiting for the VPC network stack. This adds 5-15 seconds to cold start regardless of your code size. The alternative is to remove the VPC configuration if you only need to call public APIs \(use VPC endpoints for private AWS services\), or accept the cost of Provisioned Concurrency to keep environments warm. Hyperplane ENIs \(the modern implementation\) improve this but do not eliminate the cold start penalty entirely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T19:22:07.140175+00:00— report_created — created