2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
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
respondido hace 2 meses
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.
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace un año