问题
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?
Thanks in advance
回答1:
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.
来源:https://stackoverflow.com/questions/59400284/is-there-any-way-to-store-files-on-amazon-efs-using-lambda-functions