[{"data":1,"prerenderedAt":71},["ShallowReactive",2],{"pattern-s3-lambda-mediaconvert":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":33,"level":34,"meta":35,"patternArch":36,"resources":55,"s3URL":64,"services":6,"stem":65,"testing":66,"videoId":6,"__hash__":70},"patterns\u002Fpatterns\u002Fs3-lambda-mediaconvert.json","Amazon S3 to AWS Lambda to MediaConvert",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Faryam-gutierrez.json",{"text":15},[16],"sam deploy --guided","Automate transcoding media files uploaded to S3.","json","AWS SAM",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"s3-lambda-mediaconvert","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-lambda-mediaconvert","serverless-patterns\u002Fs3-lambda-mediaconvert","template.yaml",{"headline":27,"text":28},"How it works",[29,30,31,32],"This sample project demonstrates how to use Lambda for triggering trans-codification jobs on AWS Elemental MediaCovert. This pattern leverages the integration between Amazon S3 and AWS Lambda for triggering Lambda functions","Each time you upload a video file to the input S3 bucket, a Lambda function is triggered. The function gets invocation event, process it, and creates a job in AWS Elemental MediaConverter. The settings of the job are in the job.json file which is part of the lambda deployment package.","The output of the job is a transcoded video which is saved in the output S3 bucket.","This pattern deploys two S3 buckets, one AWS Lambda function and the required IAM Roles for making AWS Lambda capable of creating AWS Elemental MediaConvert jobs and write logs in Amazon CloudWatch Logs. AWS Lambda function is written in Python 3.9.","Python","200",{},{"icon1":37,"icon2":42,"icon3":45,"line1":49,"line2":53},{"x":38,"y":39,"service":40,"label":41},20,50,"s3","S3",{"x":39,"y":39,"service":43,"label":44},"lambda","AWS Lambda",{"x":46,"y":39,"service":47,"label":48},80,"elemental-mediaconvert","Elemental MediaConvert",{"from":50,"to":51,"label":52},"icon1","icon2","ObjectCreated:*",{"from":51,"to":54,"label":52},"icon3",{"headline":56,"bullets":57},"Additional resources",[58,61],{"text":59,"link":60},"Video on Demand on AWS","https:\u002F\u002Faws.amazon.com\u002Fsolutions\u002Fimplementations\u002Fvideo-on-demand-on-aws\u002F",{"text":62,"link":63},"AWS Elemental Media Convert","https:\u002F\u002Faws.amazon.com\u002Fmediaconvert\u002F","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Fs3-lambda-mediaconvert\u002Fcloudformation.yml","patterns\u002Fs3-lambda-mediaconvert",{"headline":67,"text":68},"Testing",[69],"See the GitHub repo for detailed testing instructions.","0Xwpe7Rrkc9qxgx7J_vvkhmMgHPxW4Pt4UylWdOncHE",1778846887370]