简体   繁体   English

如何利用 AWS Lambda 从 S3 读取文件并将其写入 AWS EFS

[英]How can I leverage AWS Lambda to read a file from S3 and write it to AWS EFS

I want to read a csv file from S3 and write it to AWS EFS using AWS Lambda.我想从 S3 读取 csv 文件并使用 AWS Lambda 将其写入 AWS EFS。 How can I achieve this?我怎样才能做到这一点? Please advice.请指教。

You can use ECS / Fargate to read a file from S3 and write to EFS.您可以使用 ECS / Fargate 从 S3 读取文件并写入 EFS。 For your case, you can create a lambda to run ECS Task which would read from S3 and write to EFS and have that triggered by S3.对于您的情况,您可以创建一个 lambda 来运行 ECS 任务,该任务将从 S3 读取并写入 EFS,并由 S3 触发。

Using Lambda alone you can't use EFS because to use EFS you would need to mount as a device, hence you would need either ECS or EC2.单独使用 Lambda 您不能使用 EFS,因为要使用 EFS,您需要作为设备安装,因此您需要 ECS 或 EC2。 As of April 8, 2020, ECS and Fargate support EFS generally available [Link] .截至 2020 年 4 月 8 日,ECS 和 Fargate 支持 EFS 普遍可用[链接]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS Lambda函数从S3读取并写入Elastic Cache - AWS Lambda function to read from S3 and write to Elastic Cache AWS Lambda在S3上写入文件-javascript - aws lambda write a file on s3 - javascript 如何使用 AWS Lambda 函数从 S3 解码 a.gz 文件? - How can I decode a .gz file from S3 using an AWS Lambda function? 如何使用 Lambda 和 Python 在 AWS s3 中读取和覆盖文件? - How to read and overwrite a file in AWS s3 using Lambda and Python? 我如何使用 aws lambda 将文件写入 s3 (python)? - How could I use aws lambda to write file to s3 (python)? 我无法使用 Lambda 从 S3 下载文件到 EFS - I can't download file from S3 to EFS using Lambda AWS Lambda @ edge。 如何从S3读取HTML文件并将内容放入响应正文 - AWS Lambda@edge. How to read HTML file from S3 and put content in response body 如何使用 AWS Lambda 在 S3 中读取 csv 并将记录计数输出到 HTML? - How can I use AWS Lambda to read a csv in S3 and output the record count to HTML? 如何从S3存储桶读取大型XML文件,然后使用AWS Lambda将其用作HTTP请求正文 - How to read a large XML file from S3 bucket and then use it as an HTTP request body using AWS Lambda 我如何使用AWS凭证读取没有S3 SDK的S3文件? - How can i read an s3 file without S3 SDK using aws credentials?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM