aws lambda function url times out after 30 seconds no matter how long I set the timeout

0

I am new to using aws lambda wIth duckdb (but have used lambdas for years), I have a SAM template (python 3.12) accessing a 2GB parquet file on s3. I've allocated 3GB of memory to the lambda and using a function url. I keep getting time out of 30 seconds although the function URL is supposed to have a 15 minute time out. and the logs say max memory use of 1.7GB. Appreciate any tips or tricks!

*** I should mention the same code works with a smaller data file.

asked 2 months ago155 views
1 Answer
0
Accepted Answer

Hello.

It is possible that the Lambda version or alias for which you are updating the settings is different, and the timeout value has not been updated.
Please make sure you are updating the correct version and alias.
https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html

profile picture
EXPERT
answered 2 months ago
profile pictureAWS
EXPERT
reviewed 2 months ago
  • Wow, you nailed it. Function deployment was not picking up the extended timeout I set on the sam template. No idea why not and I have never seen this before. Thank you!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions