Skip to content

Commit a8eb884

Browse files
committed
fix: added missing PublicationEvaluationEventHandlerDLQ for PublicationEvaluationEventHandlerFunction
1 parent f80b070 commit a8eb884

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
@@ -148,6 +148,7 @@ Resources:
148148
DestinationConfig:
149149
OnFailure:
150150
Type: SQS
151+
Destination: !GetAtt PublicationEvaluationEventHandlerDLQ.Arn
151152
Events:
152153
ApprovalEvent:
153154
Type: EventBridgeRule
@@ -293,6 +294,23 @@ Resources:
293294
- Key: namespace
294295
Value: "{{resolve:ssm:/uni-prop/UnicornWebNamespace}}"
295296

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

0 commit comments

Comments
 (0)