Frank
Frank

Reputation: 295

AWS Lambda Task timed out after 3.00 seconds

I created a simple Node.js script to connect to a RDS instance but sadly it always returns with timeout error. It is strange because it works perfectly from my machine.

The instance is public accessible and context.callbackWaitsForEmptyEventLoop = false;

have you got any idea?

Upvotes: 5

Views: 8071

Answers (2)

Justin Joseph
Justin Joseph

Reputation: 3889

i have same error i fix with incress the timeout time

new aws UI

lambda function -> configuration -> General configuration -> Edit Timeout

enter image description here

Upvotes: 1

govako
govako

Reputation: 61

Lambda has a property of time out. Have you checked this configuration in the Lambda via console (Basic configuration) or in your deployment template file?

Upvotes: 4

Related Questions