mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fix(s3): use queue ARN region when delivering notifications to SQS (#735)
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user