[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-eventbridge-sqs-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":32,"level":33,"meta":34,"patternArch":35,"resources":49,"s3URL":6,"services":6,"stem":58,"testing":59,"videoId":6,"__hash__":65},"patterns\u002Fpatterns\u002Feventbridge-sqs-terraform.json","Amazon EventBridge to Amazon SQS",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. Change directory: \u003Ccode>cd eventbridge-sqs-terraform\u003C\u002Fcode>.","2. Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.","3. Confirm the stack has been deleted: \u003Ccode>terraform show\u003C\u002Fcode>.",[14],"content\u002Fcontributors\u002Fahmad-aboushady.json",{"text":16},[17],"See the GitHub repo for detailed deployment instructions.","Create an EventBridge rule that invokes an SQS queue.","json","Terraform",{"template":22},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"eventbridge-sqs-terraform","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-sqs-terraform","serverless-patterns\u002Feventbridge-sqs-terraform","main.tf",{"headline":28,"text":29},"How it works",[30,31],"This 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 main.tf filters the events based upon the criteria in the aws_cloudwatch_event_rule block. When matching events are sent to EventBridge that trigger the rule, they are delivered as a JSON event payload (see \"Example event payload from EventBridge to SQS\" in the README) 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":48},"icon1","icon2","",{"headline":50,"bullets":51},"Additional resources",[52,55],{"text":53,"link":54},"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":56,"link":57},"Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures","https:\u002F\u002Fserverlessland.com\u002Flearn\u002Feventbridge","patterns\u002Feventbridge-sqs-terraform",{"headline":60,"text":61},"Testing",[62,63,64],"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>.","9EIyEZRCruHLj-5aIQfmDcx4I4e8C79y5r16VeJZBmI",1778846885423]