Closed armenr closed 3 years ago
Same situation/case when I do this from a totally new/"from scratch" deployment --> amplify init, amplify add auth, amplify add api, amplify push, amplify add video, amplify push --> then modify job template, then modify custom trigger lambda
Same outcome/behavior
Tried deploying to a fresh app/environment in a different region (us-east-1). Same problem.
I am able to update my media job template. I am able to adjust the file extension postfix for MP3 + FLAC and build/deploy that to lambda successfully (using "custom" directory).
When I upload files to the input S3 bucket through the S3 console (flac file, mp3 file), no lambdas appear to get triggered/no jobs are submitted/created.
Hey @armenr
This is a great issue, something we want to do is add more "valid" triggers for Amplify Video. (Like mov, mp3, flac, aac, avi)
The current problem is in the lambda function itself and they way S3 triggers work. Today the trigger only works on Stack Create. https://github.com/awslabs/amplify-video/blob/master/provider-utils/awscloudformation/cloudformation-templates/vod-helpers/LambdaFunctions/SetupTriggerLambda/index.js#L16
I need to add the triggers to be called on Update Stack, to allow this to happen if the stack changes. This will take a little but I think this def needs to be updated!
In the mean time if you need to move fast you can manually add the triggers to the S3 bucket and you are good to go. Future pushes won't impact this!
Description & Context
Following what's outlined here: https://github.com/awslabs/amplify-video/wiki/audio Have also read/followed the instructions here: https://github.com/awslabs/amplify-video/issues/121#issuecomment-782283033
To Reproduce Steps to reproduce the behavior:
amplify add video
to existing projectamplify push
mediaconvert-job-temp.json
as per the wikiamplify/backend/video/audiostreams/custom/vod-helpers/LambdaFunctions/SetupTriggerLambda/index.js
Other problems:
Expected behavior Expect to upload .FLAC or .MP3 files to S3 bucket and see the Lambda get triggered + media convert job created
Screenshots
Desktop (please complete the following information):