[{"data":1,"prerenderedAt":83},["ShallowReactive",2],{"pattern-eventbridge-pipes-sqs-to-lambda-with-stepfunction-enrichment":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":35,"level":36,"meta":37,"patternArch":38,"resources":64,"s3URL":6,"services":6,"stem":78,"testing":79,"videoId":6,"__hash__":82},"patterns\u002Fpatterns\u002Feventbridge-pipes-sqs-to-lambda-with-stepfunction-enrichment.json","Amazon SQS to AWS Lambda with AWS Step Functions enrichment",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fdavid-boyne.json",{"text":13},[14],"sam deploy --guided","SQS to Lambda with Step functions enrichment using EventBridge Pipes","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-pipes-sqs-to-lambda-with-stepfunction-enrichment","serverless-patterns\u002Feventbridge-pipes-sqs-to-lambda-with-stepfunction-enrichment","eventbridge-pipes-sqs-to-lambda-with-stepfunction-enrichment","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29,30,31,32,33,34],"SQS queue is polled and messages are sent to Step Functionsworkflow, the workflow enriches the event and forwards them onto the Lambda function","\u003Ch5>How the pattern works\u003C\u002Fh5>","\u003Cimg width=\"100%\" src=\"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Fblob\u002Fmain\u002Feventbridge-pipes-sqs-to-lambda-with-stepfunction-enrichment\u002Fscreenshot.png?raw=true\" \u002F>","EventBridge pipe polls SQS messages and delivers them to the Lambda function with enriched information from a Step Functionsworkflow.","This example uses DynamoDB to enrich the message flowing through the pipe. The `order_id` is read from the SQS message and used to look up order information for the downstream Lambda function.","\u003Ch5>Important enrichment facts to know\u003C\u002Fh5>","1. If you don't want targets to get hit from enrichment you need to return an empty value \u003Ca href='https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-pipes.html#pipes-enrichment'>(more info in docs)\u003C\u002Fa>","2. Make sure you return an array from your enrichment so pipes knows how to trigger your target. Data flowing from enrichment to target must be an array","YAML","200",{},{"icon1":39,"icon4":44,"icon2":48,"icon3":52,"line1":56,"line2":60,"line3":62},{"x":40,"y":41,"service":42,"label":43},15,50,"sqs","SQS",{"x":45,"y":41,"service":46,"label":47},35,"eventbridge-pipes","EventBridge Pipes",{"x":49,"y":41,"service":50,"label":51},60,"sfn","Enrichment",{"x":53,"y":41,"service":54,"label":55},85,"lambda","AWS Lambda",{"from":57,"to":58,"label":59},"icon1","icon4","",{"from":58,"to":61,"label":59},"icon2",{"from":61,"to":63,"label":59},"icon3",{"bullets":65},[66,69,72,75],{"text":67,"link":68},"EventBridge Pipes Documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-pipes-event-source.html",{"text":70,"link":71},"CloudFormation API for Pipes","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Faws-resource-pipes-pipe.html",{"text":73,"link":74},"Video explaining EventBridge Pipes","https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=xXGXCOc3cBs&t=1037s",{"text":76,"link":77},"Learn more about event-driven architecture","https:\u002F\u002Fserverlessland.com\u002Fevent-driven-architecture","patterns\u002Feventbridge-pipes-sqs-to-lambda-with-stepfunction-enrichment",{"text":80},[81],"See the README in the GitHub repo for detailed testing instructions.","jkz_b3j2WksBXGJltsu5XxbSl9pEWdHSof2wkrnIWWI",1779878117315]