Back

Fix Lambda Timeout When Connected to VPC

Problem

Your Lambda function started timing out after adding it to a VPC. This happens because Lambda placed in private subnets cannot access the internet or AWS APIs unless NAT Gateway is configured.

Code Editor