2回答
- 新しい順
- 投票が多い順
- コメントが多い順
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
回答済み 2ヶ月前
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.
関連するコンテンツ
- AWS公式更新しました 1年前