[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-eventbridge-scheduled-batch-sam":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":29,"level":30,"meta":31,"patternArch":32,"resources":46,"s3URL":6,"services":6,"stem":60,"testing":61,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Feventbridge-scheduled-batch-sam.json","Amazon EventBridge scheduled invocation to AWS Batch",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fbiswanath-mukherjee.json",{"text":13},[14],"sam deploy --guided","Create an EventBridge event bus and route events to AWS Batch on a schedule.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-scheduled-batch-sam","serverless-patterns\u002Feventbridge-scheduled-batch-sam","eventbridge-scheduled-batch-sam","template.yaml",{"headline":25,"text":26},"How it works",[27,28],"The EventBridge rule specified in `template.yaml` uses the default event bus to schedule a trigger for AWS Batch. There are two ways to schedule the trigger - using a cron expression or a rate expression. The template has examples for both.","Please uncomment the one you want to use. The AWS Batch job is triggered based on the specified schedule.","YAML","200",{},{"icon1":33,"icon2":38,"line1":42},{"x":34,"y":35,"service":36,"label":37},20,50,"eventbridge","Amazon EventBridge",{"x":39,"y":35,"service":40,"label":41},80,"batch","AWS Batch",{"from":43,"to":44,"label":45},"icon1","icon2","Scheduled",{"bullets":47},[48,51,54,57],{"text":49,"link":50},"AWS Batch jobs as EventBridge targets","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbatch\u002Flatest\u002Fuserguide\u002Fbatch-cwe-target.html",{"text":52,"link":53},"SAM EventBridge Rule","https:\u002F\u002Fdocs.aws.amazon.com\u002Fserverless-application-model\u002Flatest\u002Fdeveloperguide\u002Fsam-property-statemachine-statemachineeventbridgerule.html",{"text":55,"link":56},"SAM - AWS Batch","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002FAWS_Batch.html",{"text":58,"link":59},"Cron expression reference","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-cron-expressions.html","patterns\u002Feventbridge-scheduled-batch-sam",{"text":62},[63],"See the GitHub repo for detailed testing instructions.","Xs-scK6sTMDMTfTb21WOHNSktuZoRXI7s6TAw9ucWoY",1778846885242]