-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Closed
Copy link
Labels
@aws-cdk/aws-lambdaRelated to AWS LambdaRelated to AWS LambdabugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp2
Description
What is the problem?
While creating a trigger for Lambda using DynamoDB Streams as source, the CDK allows only 1000 to be set as the maximum batch size. However in the documentation and using the console, we can create a trigger with a maximum batch size of 10000 records.
Reproduction Steps
handler.addEventSource(
new DynamoEventSource(table, {
startingPosition: lambda.StartingPosition.LATEST,
batchSize: 10000 })
);
What did you expect to happen?
By this code i was expecting that a trigger will be created from DynamoDB to Lambda with a batch size of 10k records.
What actually happened?
Error: Maximum batch size must be between 1 and 1000 inclusive (given 10000)

CDK CLI Version
2.15.0
Framework Version
No response
Node.js Version
v16.14.0
OS
Mac Os
Language
Typescript
Language Version
4.6.2
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-lambdaRelated to AWS LambdaRelated to AWS LambdabugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp2