Skip to content

Instantly share code, notes, and snippets.

@rkbalgi
Created April 21, 2021 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkbalgi/9ac7de4924d53d038454413b37e7a125 to your computer and use it in GitHub Desktop.
Save rkbalgi/9ac7de4924d53d038454413b37e7a125 to your computer and use it in GitHub Desktop.
Timeout Error when using AWS Java Lambda timeout error (via CDK)
If you're facing this error..
(????-d8ba0c577450) Lambda execution failed with status 200 due to customer function error: 2021-04-2... 593a3a89-???? Task timed out after 10.01 seconds. Lambda request id: ??-????-914d
By default, if you create a lambda using console, the default memory size is 512MB, if you create by AWS CDK it is 128MB!
try using `.memorySize(512)` on the lambda definition!
Thanks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment