在AWS Lambda中挂载S3文件系统? [英] Mount S3 File System in AWS Lambda?

查看:117
本文介绍了在AWS Lambda中挂载S3文件系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您是否知道是否可以通过AWS S3挂载文件系统以增加AWS Lambda存储?

Do you know if it possible mounting a File System over AWS S3 to increase AWS Lambda storage?

推荐答案

无法将Amazon S3挂载为与AWS Lambda一起使用的文件系统.

You cannot mount Amazon S3 as a filesystem for use with AWS Lambda.

AWS Lambda函数被设计为短运行脚本,用于响应您环境中的事件(例如,数据进入Kinesis流,在Amazon S3中创建文件).它们通常只运行几秒钟.

AWS Lambda functions are designed to be short-running scripts that respond to an event in your environment (eg data coming into a Kinesis stream, a file being created in Amazon S3). They typically run only for a few seconds.

虽然您没有描述用例,但是需要大量使用文件系统的东西通常并不是对Lambda函数的良好使用.

While you haven't described your use-case, something that requires heavy use of a filesystem is not a typically good use of a Lambda function.

您当然可以通过Lambda函数通过SDK调用在Amazon S3中检索并创建对象.这是从Lambda加载/存储数据的非常快速有效的方法.

You can, of course, retrieve and create objects in Amazon S3 via SDK calls from the Lambda function. This is a very fast and efficient way to load/store data from Lambda.

这篇关于在AWS Lambda中挂载S3文件系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆