是否可以使用Lambda函数在Amazon EFS上存储文件? [英] Is there any way to store files on Amazon EFS using Lambda Functions?

查看:149
本文介绍了是否可以使用Lambda函数在Amazon EFS上存储文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用API​​网关+ Lambda函数开发API.该公司的网站位于EC2,其图片位于EFS.我必须开发一种API方法才能将一些图像上传到EFS,但是我找不到找到这种方法的方法.甚至可以通过lambda函数访问EFS吗?

I'm developing an API using API Gateway + Lambda Functions. The company's website is at EC2 and its images are at EFS. I have to develop one API method to upload some images to EFS, but I can't find a way to do that. Is EFS even accessible from a lambda function?

预先感谢

推荐答案

AWS已发布 Lambda文件系统支持.请参阅这些详细信息以获取配置信息,包括CloudFormation和SAM模板.文件系统和Lambda函数必须位于同一区域,并且该函数必须附加到VPC,尽管它可能位于不同的帐户中.

AWS has released Lambda filesystem support. See these details for configuration information, including CloudFormation and SAM templates. The file system and the Lambda function must be in the same region, and the function must be attached to the VPC, though it may be in a different account.

这篇关于是否可以使用Lambda函数在Amazon EFS上存储文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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