Skip to content

Commit 084c16a

Browse files
committed
fix: added missing PublicationEvaluationEventHandlerDLQ for PublicationEvaluationEventHandlerFunction
1 parent 2b6f092 commit 084c16a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

unicorn_web/template.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ Resources:
147147
DestinationConfig:
148148
OnFailure:
149149
Type: SQS
150+
Destination: !GetAtt PublicationEvaluationEventHandlerDLQ.Arn
150151
Events:
151152
ApprovalEvent:
152153
Type: EventBridgeRule
@@ -292,6 +293,23 @@ Resources:
292293
- Key: namespace
293294
Value: "{{resolve:ssm:/uni-prop/UnicornWebNamespace}}"
294295

296+
# DeadLetterQueue for PublicationEvaluationEventHandler. Contains messages that failed to be processed
297+
PublicationEvaluationEventHandlerDLQ:
298+
Type: AWS::SQS::Queue
299+
UpdateReplacePolicy: Delete
300+
DeletionPolicy: Delete
301+
Properties:
302+
SqsManagedSseEnabled: true
303+
MessageRetentionPeriod: 1209600 # Maximum value, 1,209,600 (14days)
304+
QueueName: !Sub PublicationEvaluationEventHandlerDLQ-${Stage}
305+
Tags:
306+
- Key: stage
307+
Value: !Ref Stage
308+
- Key: project
309+
Value: !FindInMap [Constants, ProjectName, Value]
310+
- Key: namespace
311+
Value: "{{resolve:ssm:/uni-prop/UnicornWebNamespace}}"
312+
295313
##### DYNAMODB
296314
# Persists Property details in DynamoDB
297315
PropertiesTable:

0 commit comments

Comments
 (0)