[英]Is it possible to install s3fs-fuse inside a aws lambda function?
I want to extract images via ffmpeg
to s3 bucket
but not sure actually how to do this as s3
is different from local filesystem
.我想通过
ffmpeg
将图像提取到s3 bucket
但实际上不确定如何执行此操作,因为s3
与local filesystem
不同。
So after searching a bit i found s3fs-fuse
but not sure how i can install and use it inside lambda function.因此,经过一番搜索后,我找到了
s3fs-fuse
但不确定如何在 lambda 函数中安装和使用它。
Can anyone please explain, how can i do this?谁能解释一下,我该怎么做?
You should use boto3
, which is the AWS SDK for Python.您应该使用
boto3
,它是适用于 Python 的 AWS 开发工具包。
See: S3 — Boto3 Docs documentation请参阅: S3 — Boto3 Docs 文档
It has functions for uploading and downloading files to S3.它具有将文件上传和下载到 S3 的功能。
Note that in AWS Lambda functions, you can only store files in the /tmp/
directory, and there is a maximum of 512MB of storage space.请注意,在 AWS Lambda 函数中,您只能将文件存储在
/tmp/
目录中,并且最大存储空间为 512MB。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.