@@ -358,6 +358,9 @@ Resources:
358
358
Source : !GetAtt ContractsTable.StreamArn
359
359
SourceParameters :
360
360
DynamoDBStreamParameters :
361
+ MaximumRetryAttempts : 3
362
+ DeadLetterConfig :
363
+ Arn : !GetAtt ContractsTableStreamToEventPipeDLQ.Arn
361
364
StartingPosition : LATEST
362
365
OnPartialBatchItemFailure : AUTOMATIC_BISECT
363
366
BatchSize : 1
@@ -391,7 +394,7 @@ Resources:
391
394
Principal :
392
395
Service : pipes.amazonaws.com
393
396
Policies :
394
- - PolicyName : AllowDdbStreamRead
397
+ - PolicyName : ContractsTableStreamToEventPipePolicy
395
398
PolicyDocument :
396
399
Version : " 2012-10-17"
397
400
Statement :
@@ -409,6 +412,26 @@ Resources:
409
412
Action :
410
413
- events:PutEvents
411
414
Resource : !GetAtt UnicornContractsEventBus.Arn
415
+ - Effect : Allow
416
+ Action :
417
+ - sqs:SendMessage
418
+ Resource : !GetAtt ContractsTableStreamToEventPipeDLQ.Arn
419
+
420
+ ContractsTableStreamToEventPipeDLQ :
421
+ Type : AWS::SQS::Queue
422
+ UpdateReplacePolicy : Delete
423
+ DeletionPolicy : Delete
424
+ Properties :
425
+ SqsManagedSseEnabled : true
426
+ MessageRetentionPeriod : 1209600 # Maximum value, 1,209,600 (14days)
427
+ QueueName : !Sub ContractsTableStreamToEventPipeDLQ-${Stage}
428
+ Tags :
429
+ - Key : stage
430
+ Value : !Ref Stage
431
+ - Key : project
432
+ Value : !FindInMap [Constants, ProjectName, Value]
433
+ - Key : namespace
434
+ Value : !Sub "{{resolve:ssm:/uni-prop/${Stage}/UnicornContractsNamespace}}"
412
435
413
436
# ### CLOUDFORMATION NESTED STACKS
414
437
# CloudFormation Stack with the Contracts Service Event Registry and Schemas
0 commit comments