2 Answers
- Newest
- Most votes
- Most comments
0
Hello there - I don't believe /tmp
can be shared across different Lambdas:
There is also a local file system available at /tmp for all Lambda functions. This is local to each function but shared across invocations within the same execution environment. If your function must access large libraries or files, these can be downloaded here first and then used by all subsequent invocations. This mechanism provides a way to amortize the cost and time of downloading this data across multiple invocations. https://docs.aws.amazon.com/lambda/latest/operatorguide/execution-environment.html
answered 6 months ago
0
It is not possible to pass data from /tmp in one function to the other directly. You have a options:
- If your files size is smaller than 256KB, you can return the content from the function and pass it in the state machine payload.
- If it is larger, pass the name of the object in S3, and let the second function read the object again.
Relevant content
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago