
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.
AWS::EventsV2 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.Type: FIFO, so EventBridge preserves order within an event group (events are grouped by the publisher's EventGroupId at publish time). The subscriber sets the SQS MessageGroupId from the EventGroupId, so each event group becomes its own ordered group in the queue, and sets the SQS MessageDeduplicationId to the bus-assigned event id (aws:EventId), which is unique per accepted event and stable across retries.sqs:SendMessage 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.git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/eventbridge-custom-sqs-fifo/yaml/samsam deploy --guidedsam delete.