Search code examples
aws-lambdaamazon-dynamodbaws-cloudformationserverless-frameworkamazon-dynamodb-streams

Serverless.com / CloudFormation: Properties "Retry attempts", "Maximum age of record" not set on an AWS Lambda EventSourceMapping to a DynamoDB Stream


I'm trying to set the properties "Retry attempts" and "Maximum age of record" on an AWS Lambda EventSourceMapping to a DynamoDB Stream - via serverless.yml for the serverless framework. When the stack is deployed, they keep the default values, and not the values I set. Help? Thanks

My code:

name-of-serverless-function
handler: src/functions/my.handler
  events:
    - stream:
        type: dynamodb
        batchSize: 1
        maximumRetryAttempts: 2
        maximumRecordAgeInSeconds: 8
        arn: properWorkingARN

Solution

  • I just sent a PR implementing property MaximumRecordAgeInSeconds for Kinesis and DynamoDB streams: https://github.com/serverless/serverless/pull/7833