node.js – aws-sdk nodejs socket timeout after successful aws lambda run

Its hard to help you whitout a way its can be reproduces the error, but its sound as you have some node app running inside lambda and try to keep it running, if that’s the case i will not recommend this way to use a Lambda function, its build to start application, run your code and the close the app down.

If you application should run take a look on ECS, build your application as a container and push it to ECR, or spin a EC2 instance up and try a sample out here.

Late me know about its your case or I’m total wrong?

Read more here: Source link