The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

58021 (2) [Avatar] Offline
[ 211 KB ]
[ 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
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.