[{"data":1,"prerenderedAt":70},["ShallowReactive",2],{"pattern-cdk-eventbridge-stepfunction":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":19,"extension":20,"framework":21,"gitHub":22,"highlight":6,"introBox":31,"language":38,"level":39,"meta":40,"patternArch":41,"resources":54,"s3URL":6,"services":63,"stem":64,"testing":65,"videoId":30,"__hash__":69},"patterns\u002Fpatterns\u002Fcdk-eventbridge-stepfunction.json","Amazon EventBridge to AWS Step Functions",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. Delete the stack: \u003Ccode>npx cdk destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>.","3. You see a message confirming DELETE_COMPLETE.",[14],"content\u002Fcontributors\u002Fadrian-hesketh.json",{"text":16},[17,18],"npm i","npx cdk deploy","Create an EventBridge rule that triggers a Step Functions workflow","json","AWS CDK",{"template":23,"payloads":28},{"projectFolder":24,"repoURL":25,"templateURL":26,"templateFile":27},"cdk-eventbridge-stepfunction","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcdk-eventbridge-stepfunction","serverless-patterns\u002Fcdk-eventbridge-stepfunction","lib\u002Fcdk-eventbridge-stepfunction-stack.ts",[29],{"headline":30,"payloadURL":30},"",{"headline":32,"text":33},"How it works",[34,35,36,37],"This pattern creates an EventBridge event bus and a Step Functions workflow. An EventBridge rules invokes the Step Functions target when a StartReminder event is published to the event bus.","Step Functions waits until the specified date before publishing a reminder event to the even bus using a Lambda function.","This pattern creates an IAM Role for the Lambda function that gives it permission to send to an EventBridge event bus that is created as part of the template.","Step Functions is also given permission to subscribe to EventBridge events on the newly created event bus.","Node.js","200",{},{"icon1":42,"icon2":47,"line1":51},{"x":43,"y":44,"service":45,"label":46},20,50,"eventbridge","EventBridge",{"x":48,"y":44,"service":49,"label":50},80,"sfn","Step Functions",{"from":52,"to":53,"label":30},"icon1","icon2",{"headline":55,"bullets":56},"Additional resources",[57,60],{"text":58,"link":59},"Reducing custom code by using advanced rules in Amazon EventBridge","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Freducing-custom-code-by-using-advanced-rules-in-amazon-eventbridge\u002F",{"text":61,"link":62},"Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures","https:\u002F\u002Fserverlessland.com\u002Flearn\u002Feventbridge",{"from":45,"to":49},"patterns\u002Fcdk-eventbridge-stepfunction",{"headline":66,"text":67},"Testing",[68],"See the GitHub repo for detailed testing instructions.","7sXaFodV4QiOfzBSM-4-E6CfCoQS_GbQdpz-xap2IZQ",1778846883516]