fix(s3): use queue ARN region when delivering notifications to SQS (#735)

This commit is contained in:
Leonid Bogdanov authored and GitHub committed 2026-05-07 01:30:32 -05:00
1 parent c2cc053853
commit 2cc3a1a3ba
2 files changed
+67 -1

No files matched your search

@@ -1626,7 +1626,7 @@ public class S3Service {
for (QueueNotification qn : config.getQueueConfigurations()) {
if (qn.events().stream().anyMatch(p -> matchesEvent(p, eventName)) && qn.matchesKey(key)) {
try {
sqsService.sendMessage(sqsUrlFromArn(qn.queueArn()), eventJson, 0);
sqsService.sendMessage(sqsUrlFromArn(qn.queueArn()), eventJson, 0, extractRegionFromArn(qn.queueArn()));
LOG.debugv("Fired S3 event {0} to SQS {1}", eventName, qn.queueArn());
} catch (Exception e) {
LOG.warnv("Failed to deliver S3 event to SQS {0}: {1}", qn.queueArn(), e.getMessage());