[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-lambda-durable-eventbridge-cron-python-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":31,"level":32,"meta":33,"patternArch":34,"resources":48,"s3URL":6,"services":6,"stem":61,"testing":62,"videoId":6,"__hash__":65},"patterns\u002Fpatterns\u002Flambda-durable-eventbridge-cron-python-sam.json","Amazon EventBridge Scheduler to AWS Lambda durable function",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fsidharth-kothari.json",{"text":13},[14,15],"sam build","sam deploy --guided","Create a Lambda durable function triggered by EventBridge Scheduler on a cron schedule using AWS SAM.","json","AWS SAM",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-durable-eventbridge-cron-python-sam","serverless-patterns\u002Flambda-durable-eventbridge-cron-python-sam","lambda-durable-eventbridge-cron-python-sam","template.yaml",{"headline":26,"text":27},"How it works",[28,29,30],"This sample project demonstrates how to create a Lambda durable function that is triggered by EventBridge Scheduler on a cron schedule. The Lambda function uses the AWS durable Execution SDK to implement a multi-step workflow with automatic checkpointing and replay capabilities.","The durable execution pattern allows Lambda functions to span multiple invocations while maintaining state. When the function calls context.wait(), it suspends execution and creates a checkpoint. A subsequent invocation resumes from the checkpoint without re-executing previous steps.","This pattern deploys a Lambda durable function with Python 3.14 runtime, an EventBridge Scheduler schedule with cron expression, and uses function versioning to ensure the cron trigger targets a published version rather than $LATEST. EventBridge Scheduler uses an IAM role-based invocation model instead of resource-based permissions.","Python","200",{},{"icon1":35,"icon2":40,"line1":44},{"x":36,"y":37,"service":38,"label":39},25,50,"eventbridge","Amazon EventBridge Scheduler",{"x":41,"y":37,"service":42,"label":43},75,"lambda","AWS Lambda durable function",{"from":45,"to":46,"label":47},"icon1","icon2","",{"bullets":49},[50,53,56,59],{"text":51,"link":52},"AWS Lambda durable functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-functions.html",{"text":54,"link":55},"Invoking AWS Lambda durable functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-invoking.html",{"text":57,"link":58},"AWS durable execution SDK for Python","https:\u002F\u002Fgithub.com\u002Faws\u002Faws-durable-execution-sdk-python",{"text":39,"link":60},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fscheduler\u002Flatest\u002FUserGuide\u002Fwhat-is-scheduler.html","patterns\u002Flambda-durable-eventbridge-cron-python-sam",{"text":63},[64],"See the GitHub repo for detailed testing instructions.","kBhHJzFo_cCWCUz0jUvj08i19OTZVHBEdAc2OWFeO1s",1780914910360]