Search code examples
amazon-web-servicesaws-lambdaamazon-sns

Need Help Regarding AWS SNS Message Retries


How do I add message retry policies in my SNS subscription? I read some documentation and I think it is the deliveryPolicy but how do I implement it in my cloudformation code below.

  ResPartnerSubscription:
DependsOn:
  - ResPartnerTopic
Type: AWS::SNS::Subscription
Properties:
  TopicArn: !Ref ResPartnerTopic
  Protocol: lambda
  Endpoint: !GetAtt ProgramDeviceSyncSns.Arn
  RedrivePolicy:
    deadLetterTargetArn: !GetAtt DeadLetterQueue.Arn

I have read documentation where people have said that only Http/s protocols can use deliveryPolicy for message retries.


Solution

  • You can't change retry policies for lambda endpoint as they are fixed and listed here.

    The retry policies can be customized only for HTTP/S endpoints.