I have written node js program which will respond . And also i have put a setTimeout just in case the response from our cloud doesn't come.
Hi menuecho, all calls made to AWS Lambda must complete execution within 300 seconds. The default timeout is 3 seconds, but you can set the timeout to any value between 1 and 300 seconds. I have added additional documentation for your reference.