Timeout Troubles? Fixing your mysterious AWS Lambda time-out’s when you can’t log anything

tl;dr: Did you provision the function enough memory?

Marco Lüthy

--

Here’s the scenario: you’ve likely made some changes and deployed a new version of your AWS Lambda function handler. Maybe you upgraded a dependency, or you moved from Node.js 16 to Node.js 18. Now the Lambda task just keeps timing out — “Task timed out after X seconds”. Your logs in CloudWatch look something like this:

--

--

Marco Lüthy

Hi there! I’m Marco. I write mostly about software development, sometimes about books I’ve read, and occasionally something else to keep things interesting.