Skip to content

Commit a2c1b70

Browse files
committed
take out rule DLQ
1 parent ca9886a commit a2c1b70

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

stacksets/eventbridge-forwarding-rules/template.yaml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,6 @@ Resources:
2929
- events:PutEvents
3030
Resource: !Ref AwsResourceCollectorBusArn
3131

32-
TargetDlq:
33-
Type: AWS::SQS::Queue
34-
Properties:
35-
MessageRetentionPeriod: 1209600 # 14 days
36-
VisibilityTimeout: 300 # 5 minutes
37-
38-
TargetDlqPolicy:
39-
Type: AWS::SQS::QueuePolicy
40-
Properties:
41-
Queues:
42-
- !Ref TargetDlq
43-
PolicyDocument:
44-
Version: '2012-10-17'
45-
Statement:
46-
- Effect: Allow
47-
Principal:
48-
Service: events.amazonaws.com
49-
Action: sqs:SendMessage
50-
Resource: !GetAtt TargetDlq.Arn
51-
Condition:
52-
ArnEquals:
53-
aws:SourceArn: !GetAtt ResourceChangeEventsFowardingRule.Arn
54-
5532
ResourceChangeEventsFowardingRule:
5633
Type: AWS::Events::Rule
5734
Properties:
@@ -68,6 +45,4 @@ Resources:
6845
Targets:
6946
- Id: AwsResourceCollectorBus
7047
Arn: !Ref AwsResourceCollectorBusArn
71-
RoleArn: !GetAtt ResourceChangeEventsFowardingIamRole.Arn
72-
DeadLetterConfig:
73-
Arn: !GetAtt TargetDlq.Arn
48+
RoleArn: !GetAtt ResourceChangeEventsFowardingIamRole.Arn

0 commit comments

Comments
 (0)