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?

2 Risposte
0
Risposta accettata

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
con risposta 7 mesi fa
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
con risposta 7 mesi fa
  • 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)

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande