serverless-application-model icon indicating copy to clipboard operation
serverless-application-model copied to clipboard

Stream BatchSize property ignored in SAM template

Open vasylk opened this issue 9 years ago • 3 comments

Hi, it seems that BatchSize specified in SAM template for DynamoDB streams is ignored.

LambdaFunction:
      ......
      Events:
        DynamoDBNewItemEvent:
          Type: DynamoDB
          Properties:
            Stream:
              "Fn::GetAtt": [ "TableFileImport", "StreamArn" ]
            StartingPosition: "LATEST"
            BatchSize: 10

I have compared the original template with processed one in CloudFormation and there is no BatchSize properties in the latter. The stream gets default BatchSize=100

The similar issue was posted on AWS Forum but for Kinesis Streams See there

vasylk avatar Dec 21 '16 07:12 vasylk

Thanks for reporting this. Yeah, this is a bug with both Kinesis & DynamoDB streams. We will get this fixed soon.

sanathkr avatar Dec 22 '16 00:12 sanathkr

This should be fixed. Can you verify?

sanathkr avatar Feb 17 '17 22:02 sanathkr

thanks for fixing this!

I can confirm that at least for DynamoDB streams it is fixed

vasylk avatar Feb 20 '17 08:02 vasylk