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