[{"data":1,"prerenderedAt":71},["ShallowReactive",2],{"pattern-eventbridge-custom-sqs-fifo-yaml-sam":3,"pattern-group-eventbridge-custom-sqs-fifo-yaml-sam":6},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":22,"language":29,"level":30,"meta":31,"patternArch":32,"patternGroup":6,"patternGroupLabel":6,"resources":52,"stem":66,"testing":67,"videoId":6,"__hash__":70},"patterns\u002Fpatterns\u002Feventbridge-custom-sqs-fifo-yaml-sam.json","Amazon EventBridge enhanced custom event bus to Amazon SQS FIFO queue",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fshivapriya-pajjur.json",{"text":13},[14],"sam deploy --guided","Deliver ordered events from an enhanced custom EventBridge event bus (AWS::EventsV2) to an Amazon SQS FIFO queue using a FIFO subscriber, with AWS SAM.","json","AWS SAM",{"template":19},{"patternPath":20,"templateFile":21},"eventbridge-custom-sqs-fifo\u002Fyaml\u002Fsam","template.yaml",{"headline":23,"text":24},"How it works",[25,26,27,28],"This pattern uses the enhanced custom event bus in Amazon EventBridge (the \u003Ccode>AWS::EventsV2\u003C\u002Fcode> service) to deliver ordered events to an Amazon SQS FIFO queue. Unlike classic EventBridge, there are no rules or targets: a single Subscriber resource bundles the event filter, the target, the retry policy, and the dead-letter destination.","The Subscriber is created with \u003Ccode>Type: FIFO\u003C\u002Fcode>, so EventBridge preserves order within an event group (events are grouped by the publisher's \u003Ccode>EventGroupId\u003C\u002Fcode> at publish time). The subscriber sets the SQS \u003Ccode>MessageGroupId\u003C\u002Fcode> from the \u003Ccode>EventGroupId\u003C\u002Fcode>, so each event group becomes its own ordered group in the queue, and sets the SQS \u003Ccode>MessageDeduplicationId\u003C\u002Fcode> to the bus-assigned event id (\u003Ccode>aws:EventId\u003C\u002Fcode>), which is unique per accepted event and stable across retries.","Delivery uses an IAM role that EventBridge assumes to call \u003Ccode>sqs:SendMessage\u003C\u002Fcode> on both the target queue and the dead-letter queue, replacing the queue resource policy used in classic EventBridge. Events that exhaust the retry policy go to a FIFO dead-letter queue, where EventBridge keeps each group's failure records in order.","This pattern deploys one enhanced custom event bus with 14-day retention, one FIFO subscriber with a filter and retry policy, one SQS FIFO target queue, one SQS FIFO dead-letter queue, the IAM delivery role, and an Amazon CloudWatch Logs vended-log delivery for the subscriber.","YAML","300",{},{"icon1":33,"icon2":38,"icon3":42,"line1":45,"line2":49},{"x":34,"y":35,"service":36,"label":37},20,43,"eventbridge","Amazon EventBridge\nCustom event bus",{"x":39,"y":34,"service":40,"label":41},75,"sqs","Amazon SQS\nFIFO queue",{"x":39,"y":43,"service":40,"label":44},66,"Amazon SQS\nFIFO dead-letter queue",{"from":46,"to":47,"label":48},"icon1","icon2","FIFO subscriber",{"from":46,"to":50,"label":51},"icon3","Failed events",{"bullets":53},[54,57,60,63],{"text":55,"link":56},"Introducing enhanced custom event buses in Amazon EventBridge","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Faws\u002Fintroducing-enhanced-custom-event-buses-in-amazon-eventbridge-for-enterprise-scale-event-driven-applications\u002F",{"text":58,"link":59},"AWS::EventsV2::EventBus CloudFormation reference","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FTemplateReference\u002Faws-resource-eventsv2-eventbus.html",{"text":61,"link":62},"AWS::EventsV2::Subscriber CloudFormation reference","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FTemplateReference\u002Faws-resource-eventsv2-subscriber.html",{"text":64,"link":65},"Amazon SQS FIFO queues","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002FFIFO-queues.html","patterns\u002Feventbridge-custom-sqs-fifo-yaml-sam",{"text":68},[69],"See the GitHub repo for detailed testing instructions.","61XP3hMSDrktSqC0HdeIR3ZEKwqS1Hp-TriwUHNJ48Q",1794652452054]