Accessing huge file using AWS Lambda

0

The size of my S3 file is around 50MB and has 476K record count in it. When this file is placed inside the S3, the Lambda process is not getting triggered due to file size. When i reduced the file size to 7.5MB (70 record count), the S3 event was initiated and Lambda process worked s expected. In Lambda "general config" section, Memory is 1024MB, Ephemeral storage is 512 MB & time out is 8min. What should I do here? Can anyone please help me here?

Joe
已提問 7 個月前檢視次數 370 次
2 個答案
0
已接受的答案

This Issue is also filed. After changing the S3 Event type to "All Object Create Events" I was able to process the huge file (230MB) also.

Joe
已回答 7 個月前
0

The S3 trigger should invoke the Lambda function regardless of the file size uploaded. Can you confirm in CloudWatch logs that the Lambda is not invoked at all. The more likely scenario is that either the S3 object is not being successfully uploaded, or that the Lambda function is in fact being invoked but experiencing an error during execution. If confident neither of these scenarios apply, please provide some additional context into how the S3 trigger was created.

AWS
已回答 7 個月前
  • The S3 file was uploaded successfully. It is a CSV file of file size 49.9MB. The Lambda file was not invoked and I did not see any entry in Cloud Watch logs. When the file size was reduced (<8MB) and uploaded, the next second, I got an entry in Cloud Watch logs and my Glue job got triggered immediately. "how the S3 trigger was created" -- Are you asking for any specific setting in it? Below are the settings we have provided (It is done by Admin and I do not have any control on these trigger setting): Bucket arn, Event Types (PUT, POST, COPY), Notification Name, Prefix (folder1/folder2/), Service Principal, Source Account, Statement ID (ddh-dms-glue-roles-DDHGlueLambdaPermission-asdeftgyhPUi)

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南