How do I troubleshoot timeout issues with a Lambda function that's in an Amazon VPC?

2 minute read
0

My AWS Lambda function returns timeout errors when I configure the function to access resources in an Amazon Virtual Private Cloud (Amazon VPC).

Resolution

Confirm that there's a valid network path to the endpoint that your function is trying to reach. To review your network settings, see How do I give internet access to a Lambda function that's connected to an Amazon VPC?

Important: If you're using a custom Dynamic Host Configuration Protocol (DHCP) options set, then confirm that your custom DNS server is working as expected.

Configure the following network settings:

If you're using an AWS SDK, then check if the SDK provides any error logs that can help you determine what's causing the timeouts.

Related information

How do I troubleshoot issues with Amazon VPC route tables?

How does DNS work and how do I troubleshoot partial or intermittent DNS failures?

How do I troubleshoot connectivity issues between an interface Amazon VPC endpoint and an endpoint service?

Troubleshoot networking issues in Lambda

AWS OFFICIAL
AWS OFFICIALUpdated 4 months ago