Skip to content

Commit 57e0067

Browse files
author
John Gilbert
committed
add-eb-global-support
1 parent 0bad966 commit 57e0067

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-lambda-stream",
3-
"version": "1.0.30",
3+
"version": "1.0.31",
44
"description": "Create stream processors with AWS Lambda functions.",
55
"keywords": [
66
"aws",

src/sinks/eventbridge.js

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const publishToEventBridge = ({ // eslint-disable-line import/prefer-defa
2121
maxPublishRequestSize = Number(process.env.PUBLISH_MAX_REQ_SIZE) || Number(process.env.MAX_REQ_SIZE) || 256 * 1024,
2222
batchSize = Number(process.env.PUBLISH_BATCH_SIZE) || Number(process.env.BATCH_SIZE) || 10,
2323
parallel = Number(process.env.PUBLISH_PARALLEL) || Number(process.env.PARALLEL) || 8,
24+
endpointId = process.env.BUS_ENDPOINT_ID,
2425
handleErrors = true,
2526
retryConfig,
2627
step = 'publish',
@@ -47,6 +48,7 @@ export const publishToEventBridge = ({ // eslint-disable-line import/prefer-defa
4748
Entries: batchUow.batch
4849
.filter((uow) => uow[publishRequestEntryField])
4950
.map((uow) => uow[publishRequestEntryField]),
51+
EndpointId: endpointId || undefined,
5052
},
5153
});
5254

0 commit comments

Comments
 (0)