58021 (2) [Avatar] Offline
#1
file1.tiff
[ 211 KB ]
file2.tiff
[ 110 KB ]
I am on Chapter 3 page 51 and doing the Exercise of Creating Lambda function and event on S3 to trigger the function.
I followed all the instructions, when I load a video to the folder it keeps transcoding videos recursively.

I am attaching 2 screenshots.

As it is a trigger on bucket, every time transcoder is adding a file the function is triggered recursively.
58021 (2) [Avatar] Offline
#2
The recursion is happening due to the reason that the trigger is on Bucket on upload of new .mp4 movie.
The function triggers Transcoder on the first upload and then the js function is creating 3 different files all with .mp4 extension which in turn trigger the function hence recursion.
I added a suffix to the Bucket event trigger, now I am looking for only .mov and the recursion is stopped.