[{"data":1,"prerenderedAt":59},["ShallowReactive",2],{"pattern-stepfunctions-fargate-lambda":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":28,"level":29,"meta":30,"patternArch":31,"resources":52,"s3URL":6,"services":6,"stem":54,"testing":55,"videoId":6,"__hash__":58},"patterns\u002Fpatterns\u002Fstepfunctions-fargate-lambda.json","AWS Step Functions to AWS Lambda or Amazon ECS",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Feric-johnson.json",{"text":13},[14],"sam deploy","Create a Step Functions workflow to invoke either a Lambda function or ECS Fargate task.","json","AWS SAM",{"template":19},{"projectFolder":20,"repoURL":21,"templateURL":22,"templateFile":23},"stepfunctions-fargate-lambda","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fstepfunctions-fargate-lambda","serverless-patterns\u002Fstepfunctions-fargate-lambda","template.yaml",{"headline":25,"text":26},"How it works",[27],"When a new file is uploaded to the S3 Bucket, the Step Functions workflow is invoked to process the file. Based on the file type, the Step Functions workflow will invoke either the Lambda function for image jobs or the Fargate task for video jobs.","Python","400",{},{"icon1":32,"icon2":37,"icon3":42,"line1":46,"line2":50},{"x":33,"y":34,"service":35,"label":36},20,50,"sfn","AWS Step Functions",{"x":38,"y":39,"service":40,"label":41},80,25,"lambda","AWS Lambda",{"x":38,"y":43,"service":44,"label":45},75,"fargate","AWS Fargate",{"from":47,"to":48,"label":49},"icon1","icon2","",{"from":47,"to":51,"label":49},"icon3",{"bullets":53},[],"patterns\u002Fstepfunctions-fargate-lambda",{"text":56},[57],"See the GitHub repo for detailed testing instructions.","8jarvd3Ki5RSyZv6JahqHOS8XIAn3VGxQtRsjGNsULY",1778927711882]