File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ Resources:
3636 QueueName : !Sub '${AWS::StackName}-Queue'
3737 ReceiveMessageWaitTimeSeconds : !Ref ReceiveMessageWaitTimeSeconds
3838 VisibilityTimeout : !Ref VisibilityTimeout
39+ RedrivePolicy :
40+ deadLetterTargetArn : !GetAtt DeadLetterQueue.Arn
41+ maxReceiveCount : 3
3942
4043 PrimaryQueuePolicy :
4144 Type : AWS::SQS::QueuePolicy
@@ -57,6 +60,17 @@ Resources:
5760 Queues :
5861 - !Ref PrimaryQueue
5962
63+ DeadLetterQueue :
64+ Type : AWS::SQS::Queue
65+ Properties :
66+ DelaySeconds : 0
67+ MessageRetentionPeriod : 1209600
68+ QueueName : !Sub '${AWS::StackName}-DeadLetterQueue'
69+ ReceiveMessageWaitTimeSeconds : !Ref ReceiveMessageWaitTimeSeconds
70+ RedriveAllowPolicy :
71+ redrivePermission : allowAll
72+ VisibilityTimeout : !Ref VisibilityTimeout
73+
6074Outputs :
6175
6276 PrimaryQueueArn :
You can’t perform that action at this time.
0 commit comments