[英]File Copy from one S3 bucket to other S3 bucket using Lambda - timing constraint?
I need to copy large files ( may be even greater than 50 GB) from one S3 bucket to other S3 bucket ( event based).我需要将大文件(甚至可能大于 50 GB)从一个 S3 存储桶复制到另一个 S3 存储桶(基于事件)。 I am planning to use s3.Object.copy_from to do this inside Lambda ( using boto3).
我打算使用 s3.Object.copy_from 在 Lambda 中执行此操作(使用 boto3)。
I wanted to see if anyone has tried this?我想看看有没有人试过这个? will this have any performance issue for larger files (100 GB etc.) causing Lambda timeout?
对于导致 Lambda 超时的较大文件(100 GB 等),这会有任何性能问题吗?
If yes, is there any alternate option?如果是,是否有其他选择? ( I am trying to use code since I might need to do some other additional logic like rename file, move source file to archive etc.).
(我正在尝试使用代码,因为我可能需要执行一些其他附加逻辑,例如重命名文件、将源文件移动到存档等)。
Note- I am also exploring AWS S3 Replication options, but looking for other solutions in parallel.注意-我也在探索 AWS S3 复制选项,但同时寻找其他解决方案。
You can use AWS S3 replication feature.您可以使用 AWS S3 复制功能。 It supports key prefix and API filtering as well.
它还支持密钥前缀和 API 过滤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.