[英]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.