mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
fix(eventbridge): propagate region for correct SQS queue resolution (#870)
Ensure the EventBridge region is correctly passed through downstream processing so that SQS queue lookup uses the intended region instead of defaulting to the primary region.
This commit is contained in:
1 parent
a1d3c82dfa
commit
43ba8a73b0
2 files changed
+24
-5
No files matched your search
+1
-1
@@ -61,7 +61,7 @@ public class EventBridgeInvoker {
|
||||
String queueUrl = AwsArnUtils.arnToQueueUrl(arn, baseUrl);
|
||||
String messageGroupId = target.getSqsParameters() != null
|
||||
? target.getSqsParameters().getMessageGroupId() : null;
|
||||
sqsService.sendMessage(queueUrl, payload, 0, messageGroupId, null);
|
||||
sqsService.sendMessage(queueUrl, payload, 0, messageGroupId, null, region);
|
||||
LOG.debugv("EventBridge delivered to SQS: {0}", arn);
|
||||
} else if (arn.contains(":sns:")) {
|
||||
String topicRegion = extractRegionFromArn(arn, region);
|
||||
|
||||
Reference in new issue
Block a user