首页 > 解决方案 > Can I "link" my Lambda's temp directory to S3 bucket?

问题描述

I am currently using FFMPEG to generate files in a lambda. Unfortunately the output options are pretty limited in terms of "to disk" or SFTP. I am trying to avoid making an FTP server for this.

Is there any way to listen to writes onto the /tmp dir and forward them over to an S3 file instead? If there's no AWS feature for swapping out what counts as the temporary dir, I am thinking I might be able to split the output file into chunks and "listen" for each chunk completing in some way by "watching" the folder.

标签: amazon-s3aws-lambda

解决方案


不,这是不可能的。

一个 AWS Lambda 函数在/tmp/. 与 Amazon S3 的任何通信都需要通过 Lambda 函数中的代码完成。


推荐阅读