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:
Arthur Tristram authored and GitHub committed 2026-05-16 15:28:49 -05:00
1 parent a1d3c82dfa
commit 43ba8a73b0
2 files changed
+24 -5

No files matched your search

@@ -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);