Skip to content

EventBridgeRule RetryPolicy for Targets #1857

@jeffmarcinko

Description

@jeffmarcinko

Request to Add RetryPolicy to the EventBridgeRule property:

Please add support for EventBridge retry policy to the EventBridgeRule sub-property of the Serverless Function resource. This should map to the CloudFormation Target -> RetryPolicy property (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-retrypolicy)

Desired Example:

  EventProcessingFunction:
    Type: AWS::Serverless::Function 
    Properties:
      CodeUri: src/event_processing
      Handler: app.handler
      Runtime: python3.8
      Events:
        NewEventCreatedRule:
          Type: EventBridgeRule
          Properties:
            EventBusName: !Ref ProcessingEventBus
            Pattern:
              source:
                - com.example.service
              detail-type:
                - NewExampleCreated
            DeadLetterConfig:  # Event Delivery DLQ
              Arn: !GetAtt BuildEventBusDLQ.Arn
            RetryPolicy:  # Event Delivery Retry Policy
              MaximumEventAgeInSeconds: 60 
              MaximumRetryAttempts: 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions