Skip to main content

Moving S3 files after job completion

Beware that, if you use EventBridge to send a notification somewhere after a MediaConvert job completes (to e.g. invoke a Lambda function) - the notification may arrive before the finished files are actually accessible in S3.

Attempting to copy the newly-transcoded videos will result in a 500 "No Such Object" error, even though the object is viewable in the S3 console. You need to specify the final location you want the files to be in via the MediaConvert job or JobTemplate instead.

If you need to send videos to different S3 buckets conditionally, either use different JobTemplates with a separate file group, or dynamically generate the JSON for the job in your code before requesting it.