[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"pattern-sqs-eventbridgepipes-sqs-msg-copy-data-filter-sam":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":31,"level":32,"meta":33,"patternArch":34,"resources":51,"s3URL":6,"services":6,"stem":56,"testing":57,"videoId":6,"__hash__":60},"patterns\u002Fpatterns\u002Fsqs-eventbridgepipes-sqs-msg-copy-data-filter-sam.json","Copying Amazon SQS messages between queues using Amazon EventBridge Pipes",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fbiswanath-mukherjee.json",{"text":13},[14],"sam deploy --guided","The pattern shows the filter capability of Amazon EventBridge Pipes while copying data from one Amazon SQS queue to another queue.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsqs-eventbridgepipes-sqs-msg-copy-data-filter-sam","serverless-patterns\u002Fsqs-eventbridgepipes-sqs-msg-copy-data-filter-sam","sqs-eventbridgepipes-sqs-msg-copy-data-filter-sam","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29,30],"This template creates two Amazon SQS queues - source-queue and target-queue along with an Amazon EventBridge Pipe.","The Amazon EventBridge pipe copies messages from source-queue to target-queue only if message payload (JSON) contains color attribute having values red or blue.","Once the stack is deployed, use `send-messages-to-source-queue.sh` to send messages to the source-queue. This scripts sends four messages with different values for color attribute.","Validate received messages on `target-queue` using `receive-messages-from-target-queue.sh`. Only the messages with red and blue values for color attribute are available in `target-queue`.","YAML","200",{},{"icon1":35,"icon2":40,"icon3":43,"line1":46,"line2":49},{"x":36,"y":37,"service":38,"label":39},15,50,"sqs","Amazon SQS(source)",{"x":37,"y":37,"service":41,"label":42},"eventbridge-pipes","EventBridge Pipes(extract-filter-load)",{"x":44,"y":37,"service":38,"label":45},85,"Amazon SQS(target)",{"from":47,"to":48},"icon1","icon2",{"from":48,"to":50},"icon3",{"bullets":52},[53],{"text":54,"link":55},"Amazon EventBridge Pipes filtering","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-pipes-event-filtering.html","patterns\u002Fsqs-eventbridgepipes-sqs-msg-copy-data-filter-sam",{"text":58},[59],"See the GitHub repo for detailed testing instructions.","1cM3Ruma2orww1lbMu7uns3Yv2aMUh28pO2xrSYb-5k",1778846888243]