Skip to content Skip to sidebar Skip to footer

Lambda Python Dynamodb Write Gets Timeout Error

I have been trying to work through my first tutorial on lambda dynamodb connections and am running into a timeout error. In the lambda console I have the following code: from __fut

Solution 1:

The endpoint URL for DynamoDB seems to be incorrect:

endpoint_url="http://localhost:8000"

This is used only for local testing of DynamoDB. From Lambda function, the endpoint for us-east-1 needs to be:

endpoint_url="https://dynamodb.us-east-1.amazonaws.com"

As per the AWS Regions and Endpoints document.

Post a Comment for "Lambda Python Dynamodb Write Gets Timeout Error"