[{"data":1,"prerenderedAt":70},["ShallowReactive",2],{"pattern-eventbridge-sfn-redrive":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":29,"language":33,"level":34,"meta":35,"patternArch":36,"resources":55,"s3URL":6,"services":61,"stem":62,"testing":63,"videoId":28,"__hash__":69},"patterns\u002Fpatterns\u002Feventbridge-sfn-redrive.json","Amazon EventBridge to redrive AWS Step Functions failed state",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fbenjamin-smith.json",{"text":15},[16],"sam deploy --guided","Create an EventBridge rule to redrive a Step Fucntions workflow from a failed state","json","AWS SAM",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"eventbridge-sfn-redrive","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-sfn-redrive","serverless-patterns\u002Feventbridge-sfn-redrive","template.yaml",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31,"test":28},"How it works",[32],"Proactively detect workflow failures and initiate a Step Functions redrive, this elminiates the need to restart a workflow from the begnining.","Node.js","100",{},{"icon1":37,"icon2":42,"icon3":45,"line1":49,"line2":52},{"x":38,"y":39,"service":40,"label":41},20,50,"eventbridge","EventBridge",{"x":39,"y":39,"service":43,"label":44},"lambda","AWS Lambda",{"x":46,"y":39,"service":47,"label":48},80,"sfn","StepFunctions",{"from":50,"to":51,"label":28},"icon1","icon2",{"from":51,"to":53,"label":54},"icon3","RedriveExecution",{"headline":56,"bullets":57},"Additional resources",[58],{"text":59,"link":60},"Introducing AWS Step Functions redrive: a new way to restart workflows","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fintroducing-aws-step-functions-redrive-a-new-way-to-restart-workflows\u002F",{"from":40,"to":47},"patterns\u002Feventbridge-sfn-redrive",{"headline":64,"text":65},"Testing",[66,67,68],"Use the AWS CLI to send a test event to EventBridge and observe the event delivered to the Lambda function:","1. Send an event to EventBridge: \u003Ccode>aws events put-events --entries file:\u002F\u002Fevent.json\u003C\u002Fcode>.","2. Retrieve the logs from the Lambda function: \u003Ccode>sam logs -n ENTER_YOUR_CONSUMER_FUNCTION_NAME\u003C\u002Fcode>.","YVH31_7twEhkjyajYAty0yYO8TqgWfzY7eVR5oHtQHs",1781692545499]