Is there any way to catch AWS lambda timed out error in code level?
问题 Is there any way to catch AWS lambda timed out error in code-level so that I can have a chance to handle for the error before exiting the lambda function? 回答1: While the lambda environment doesn't fire a "timing out" event, you can do this yourself fairly trivially. Each language has a function exposed by the context object to get the remaining time in milliseconds. You can use that, in tandem with the timer functionality of whatever language you're using to ensure you get notified before