简体   繁体   English

当文件大小超过 ~15MB 时,不会为 S3 PutObject 事件触发 CloudWatch 事件

[英]CloudWatch event is not triggering for S3 PutObject event when file size is above ~15MB

I have a CloudWatch which has to capture all the PutObject events and process based on the filetype by logging the event into loggroup.我有一个 CloudWatch,它必须通过将事件记录到日志组中来捕获所有 PutObject 事件并根据文件类型进行处理。 based on the filetype a particular lambda function is triggered process the file.根据文件类型触发特定的 lambda 函数处理文件。 I am able to trigger lambda as expected only when file size is less than 15MB.只有当文件大小小于 15MB 时,我才能按预期触发 lambda。 When file size is more than 15MB neither cloudwatch event is logging the information nor lambda is triggering(I am using S3 trigger in Lambda function).当文件大小超过 15MB 时,cloudwatch 事件既不会记录信息,也不会触发 lambda(我在 Lambda 函数中使用 S3 触发器)。

This is possibly because the object was uploaded via Amazon S3 Multi-part Upload .这可能是因为对象是通过Amazon S3 Multi-part Upload 上传的

In the S3 Event configuration, also activate Multipart upload completed and the Lambda function should be triggered when the file is uploaded via multi-part upload.在 S3 事件配置中,还激活Multipart upload completed ,当文件通过Multipart upload completed时,应触发 Lambda 函数。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM