I\'m trying to write a Lambda function using Node.js which connects to my RDS database. The database is working and accessible from my Elastic Beanstalk environment. When I
The problem does not originate from the timeout, but from the way you close the connection. Use .destroy()
instead if you do not want to wait for the callback that OR use the callback correctly when closing the connection in .end(function(err) { //Now call your callback });
See this thread for a more in depth explanation.