-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
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