Files in Lambda's /tmp
A Lambda function downloads a model to /tmp if it isn't there yet. Logs show the download is sometimes skipped and sometimes repeated. Why?
/tmp
Choose one answer
/tmp is shared by every running copy of the function, so they overwrite each other.
/tmp is cleared after every invocation, so the skipped downloads are a logging bug.
/tmp belongs to one execution environment; warm reuses keep it, new ones start empty.
/tmp is kept for 15 minutes after a download and then cleared by Lambda.