[{"data":1,"prerenderedAt":68},["ShallowReactive",2],{"pattern-s3-eventbridge-sfn":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":30,"level":31,"meta":32,"patternArch":33,"resources":52,"s3URL":6,"services":6,"stem":63,"testing":64,"videoId":6,"__hash__":67},"patterns\u002Fpatterns\u002Fs3-eventbridge-sfn.json","Amazon S3 to Amazon EventBridge to AWS Step Functions",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fpascal-vogel.json",{"text":13},[14],"sam deploy","Uses EventBridge to trigger a Step Functions workflow each time an object is uploaded to S3.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-eventbridge-sfn","serverless-patterns\u002Fs3-eventbridge-sfn","s3-eventbridge-sfn","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29],"The SAM template deploys an Amazon S3 bucket that publishes events to Amazon EventBridge, and sets up an AWS Step Functions workflow to show how to consume these events via an EventBridge rule. It deploys the the IAM resources required to run the application.","EventBridge consumes events directly from S3 buckets when the NoticationConfiguration is enabled, as shown in the template.","The template contains a sample Step Functions workflow that detects cats in images uploaded to the Amazon S3 bucket using Amazon Rekognition's DetectLabels API. Replace this workflow with your own state machine.","Integration","200",{},{"icon1":34,"icon2":39,"icon3":42,"line1":46,"line2":50},{"x":35,"y":36,"service":37,"label":38},20,50,"s3","Amazon S3",{"x":36,"y":36,"service":40,"label":41},"eventbridge","Amazon EventBridge",{"x":43,"y":36,"service":44,"label":45},80,"sfn","Step Functions",{"from":47,"to":48,"label":49},"icon1","icon2","Event",{"from":48,"to":51,"label":49},"icon3",{"bullets":53},[54,57,60],{"text":55,"link":56},"Detecting labels in an image - Amazon Rekognition Developer Guide","https:\u002F\u002Fdocs.aws.amazon.com\u002Frekognition\u002Flatest\u002Fdg\u002Flabels-detect-labels-image.html",{"text":58,"link":59},"AWS SDK service integrations - AWS Step Functions Developer Guide","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fsupported-services-awssdk.html",{"text":61,"link":62},"AWS Step Functions Workshop","https:\u002F\u002Fcatalog.workshops.aws\u002Fstepfunctions\u002Fen-US\u002F","patterns\u002Fs3-eventbridge-sfn",{"text":65},[66],"See the GitHub repo for detailed testing instructions.","DC6go78miLllxlVIQkDWYlYmPRM12dCFJCQlzrm47NE",1782383729744]