Amazon SQS queue target
To deliver to an Amazon SQS queue, set TargetArn to the queue ARN, for example
arn:aws:sqs:us-east-1:111122223333:large-orders, and add SqsParameters. For a FIFO
queue, set MessageGroupId; the usual value is the event's group,
{% $events.SystemMetadata.EventGroupId %}.
Parameters
| Parameter | What it sets |
|---|---|
MessageGroupId | The queue message group. Required for a FIFO queue |
MessageDeduplicationId | The queue deduplication identifier for a FIFO queue without content-based deduplication. Derive it from the event; a constant makes the queue discard every message after the first |
DelaySeconds | Delivery delay for the message |
MessageAttributes | Message attributes to attach |
MessageSystemAttributes | System attributes, such as the Amazon X-Ray trace header |
Delivery role
The role needs sqs:SendMessage on the queue. If the queue is encrypted with a customer
managed key, the role also needs kms:GenerateDataKey and kms:Decrypt on that
key.
Batching and payload
EventBridge calls SendMessageBatch, so one target call carries up to 10 events, and one queue
message carries one event. Transformer decides the body of each message. See
Batching deliveries to a target.