Skip to content

Commit

Permalink
feat: dead-letter queue for text extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
cgodwin1 committed Nov 14, 2024
1 parent 591ef4b commit 19138ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions solution/text-extractor/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ resources:
DelaySeconds: 0
MessageRetentionPeriod: 345600 # 4 days
VisibilityTimeout: 900
RedrivePolicy:
deadLetterTargetArn: !GetAtt DeadLetterQueue.Arn
maxReceiveCount: 5 # retry 5 times before moving to dead-letter queue
DeadLetterQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: ${self:custom.stage}-text-extractor-dl-queue
LambdaFunctionRole:
Type: AWS::IAM::Role
Properties:
Expand Down

0 comments on commit 19138ea

Please sign in to comment.