[{"data":1,"prerenderedAt":53},["ShallowReactive",2],{"workflow-batch-lambda-cdk":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-cdk.json","AWS Batch with Lambda",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fmike-ellis.json",{"text":13},[14,15],"1. Bootstrap CDK, if needed: \u003Ccode>cdk bootstrap aws:\u002F\u002F{your-aws-account-number}\u002F{your-aws-region}\u003C\u002Fcode>","2. Deploy the stack: \u003Ccode>cdk deploy\u003C\u002Fcode>","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-cdk.png","json","AWS CDK",{"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-cdk\u002F","batch-lambda-cdk","batch_lambda_cdk\u002Fapp.py","batch_lambda_cdk\u002Fstatemachine\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-cdk",{"headline":47,"text":48},"Testing",[49],"See the GitHub repo for detailed testing instructions.","Standard","Data Processing","xsuxrzyrfKqmQBNl5-gvx8BTTapFz5Nyx-c9zV3K_Ow",1778927712214]