Lambda function is nearing timeout
Why do I see this?
One of your Lambda functions' maximum execution time has exceeded 90% of its allocated timeout during the last 60 minutes.
What does this mean?
The AWS Lambda service lets you configure a timeout value of up to 15 minutes, whenever you deploy a Lambda function. When the configured timeout of a function is reached, AWS Lambda terminates the execution of that function. This event notifies you when the execution time of your function has exceeded 90% of the configured timeout value for that function. This will allow you some time to take necessary actions before your function gets terminated and starts throwing timeout errors.
How do I fix “Lambda function is nearing timeout”?
If you were notified of this event for any of your Lambda functions, you can increase its timeout using the AWS Lambda console. You can load test your Lambda function to determine an optimum timeout value.