[{"data":1,"prerenderedAt":53},["ShallowReactive",2],{"workflow-batch-lambda-tf":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":16,"diagram":17,"extension":18,"framework":19,"gitHub":20,"introBox":29,"level":34,"meta":35,"resources":36,"s3URL":39,"services":40,"simplicity":44,"stem":45,"testing":46,"type":50,"usecase":51,"videoId":28,"__hash__":52},"workflows\u002Fworkflows\u002Fbatch-lambda-tf.json","AWS Batch with Lambda",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fmike-ellis.json",{"text":13},[14,15],"terraform init","terraform apply","This sample project demonstrates how to use Step Functions to pre-process data with AWS Lambda functions and then orchestrate AWS Batch jobs. Deploying this sample project will create an AWS Step Functions state machine, a Lambda function, and an AWS Batch job.","\u002Fassets\u002Fimages\u002Fworkflows\u002Fbatch-lambda-tf.png","json","Terraform",{"template":21,"payloads":26},{"repoURL":22,"templateDir":23,"templateFile":24,"ASL":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Fbatch-lambda-tf\u002F","batch-lambda-tf","main.tf","statemachine\u002Fstatemachine.asl.json",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32,33],"In this project, Step Functions uses a state machine to invoke a Lambda function to do simple pre-processing before an AWS Batch job is submitted. The Lambda function simulates producing variable input for an AWS Batch job by generating a random number and passing it as input to the Batch Job state.","The batch job state submits an AWS Batch job using the randomly generated number as an input to the job.  The Batch job simply echoes this value.","100",{},{"headline":37,"bullets":38},"Additional resources",[],null,[41,42,43],"lambda","batch","sfn","1 - Fundamental","workflows\u002Fbatch-lambda-tf",{"headline":47,"text":48},"Testing",[49],"See the GitHub repo for detailed testing instructions.","Standard","Data Processing","H3mT_eqGwSt7Txd4EKGrkEPY-cGo6ddHmqKMMWh9TIQ",1778846888786]