简体   繁体   English

是否可以在 aws lambda 函数中安装 s3fs-fuse?

[英]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但实际上不确定如何执行此操作,因为s3local 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.

相关问题 是否可以在 aws lambda function 中使用并行处理? - Is it possible to use parallel processing in aws lambda function? 到达 AWS Lambda function 上的 S3 位置 - Reaching an S3 location on AWS Lambda function 是否可以在 lambda function 内应用 groupby? - Is it possible to apply groupby inside lambda function? AWS lambda:在本地调用可访问 s3 的 python lambda 函数 - AWS lambda: Invoking locally a python lambda function with access to s3 如何在 AWS CDK 创建的 Python Lambda Function 中安装外部模块? - How to install external modules in a Python Lambda Function created by AWS CDK? 如何在 AWS 中模拟 AWS lambda function 的 s3.Object - how to mock s3.Object for an AWS lambda function in AWS 在 docker 中使用 sagemaker-training pip install s3fs 导致兼容性问题 - pip install s3fs with sagemaker-training inside docker causing compatibility issues 如何在 AWS lambda ZC1C425268E68385D1AB50741C 中为 PostgreSQL 安装 psycopg2 库在 python 中 - How to install psycopg2 libary in python for PostgreSQL in AWS lambda function? 是否可以从Python Boto同步调用AWS Lambda函数? - Is it possible to synchronously invoke an AWS Lambda function from Python Boto? 如何在AWS Lambda函数中获取GET和POST参数 - How to fetch GET and POST params inside a AWS Lambda Function
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM