Skip to content

Commit 8cf70cf

Browse files
committed
fix(approvals): correct DeadLetterConfig shape on state machine EventBridge rule
The PublicationApprovalRequestedEvent rule's DeadLetterConfig used {Type: SQS, Destination: ...} — a shape valid only for EventInvokeConfig.DestinationConfig.OnFailure, not for a rule DeadLetterConfig, which only accepts Arn/QueueLogicalId/Type. Fixed to {Arn: !GetAtt ApprovalsServiceDLQ.Arn}, matching the correct sibling rule's DLQ wiring on the same template. Same defect and fix as the .NET track.
1 parent 42e2511 commit 8cf70cf

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

unicorn_approvals/infrastructure/approvals-service/template.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,7 @@ Resources:
253253
MaximumRetryAttempts: 5
254254
MaximumEventAgeInSeconds: 900
255255
DeadLetterConfig:
256-
Type: SQS
257-
Destination: !GetAtt ApprovalsServiceDLQ.Arn
256+
Arn: !GetAtt ApprovalsServiceDLQ.Arn
258257
DefinitionSubstitutions:
259258
WaitForContractApprovalArn: !GetAtt WaitForContractApprovalFunction.Arn
260259
TableName: !Ref ContractStatusTable

0 commit comments

Comments
 (0)