[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-eventbridge-sqs-sls":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":32,"level":33,"meta":34,"patternArch":35,"resources":48,"s3URL":6,"services":6,"stem":57,"testing":58,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Feventbridge-sqs-sls.json","Amazon EventBridge to Amazon SQS",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>serverless remove --verbose\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\u002Fdmitry-gulin.json",{"text":15},[16],"serverless deploy --verbose","Create an EventBridge rule that invokes an SQS queue.","json","Serverless Framework",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"eventbridge-sqs-sls","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-sqs-sls","serverless-patterns\u002Feventbridge-sqs-sls","serverless.yml",{"headline":27,"text":28,"test":31},"How it works",[29,30],"The Serverless Framework template deploys an SQS queue that is triggered by an EventBridge rule. The SQS queue policy provides the permission for EventBridge to send messages to the SQS queue.","In this example, the EventBridge rule specified in the template filters the events based upon the criteria in the EventPattern section. When matching events are sent to EventBridge that trigger the rule, they are delivered as a JSON event payload to the SQS queue.","","Integration","100",{},{"icon1":36,"icon2":41,"line1":45},{"x":37,"y":38,"service":39,"label":40},20,50,"eventbridge","EventBridge",{"x":42,"y":38,"service":43,"label":44},80,"sqs","SQS",{"from":46,"to":47,"label":31},"icon1","icon2",{"headline":49,"bullets":50},"Additional resources",[51,54],{"text":52,"link":53},"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":55,"link":56},"Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures","https:\u002F\u002Fserverlessland.com\u002Flearn\u002Feventbridge","patterns\u002Feventbridge-sqs-sls",{"headline":59,"text":60},"Testing",[61,62,63],"Use the AWS CLI to send a test event to EventBridge:","1. Send an event to EventBridge: \u003Ccode>aws events put-events --entries file:\u002F\u002Fevent.json\u003C\u002Fcode>.","2. Retrieve the message from the SQS queue, using the queue URL from the AWS SAM deployment outputs: \u003Ccode>aws sqs receive-message --queue-url ENTER_YOUR_QUEUE_URL\u003C\u002Fcode>.","KbO7hUyaPog2enF31w4MhZXpZqNslrkPJr6104oidLs",1778927708618]