1 Answer
- Newest
- Most votes
- Most comments
0
This should help you understand the /tmp environment within Lambda. https://docs.aws.amazon.com/lambda/latest/operatorguide/execution-environment.html
Note: Delete any /tmp files before exiting, and use UUID naming to prevent different instances from accessing the same temporary files
Clearing the folder is not needed -- you gain efficiency on later invocations by leaving it there as cache. Only delete items that you specifically add (data) and name the files with UUID or other random names to avoid conflicts between invocations that may overlap.
Hope this helps!
Relevant content
- asked 4 years ago
- asked 2 years ago
- asked 3 years ago
