Skip to content

Commit daedfec

Browse files
Updated per @Kishore request (#23)
* updated/re-shuffle of README.md * initial commit of guide * removed root principals from dlq policies
1 parent 097e80c commit daedfec

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

templates/deepwatch-logging-resource-configuration.yaml

+13-10
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ Resources:
9191
Resource: !GetAtt
9292
- rGuardDutyDeadLetterQueue
9393
- Arn
94-
Principal:
95-
AWS:
96-
- !Sub 'arn:aws:iam::${AWS::AccountId}:root'
94+
Principal: '*'
95+
Condition:
96+
ArnEquals:
97+
'aws:Sourcearn': !Sub 'arn:aws:s3:::${pGuardDutyBucketName}'
9798
Queues:
9899
- !Ref rGuardDutyDeadLetterQueue
99100

@@ -168,9 +169,10 @@ Resources:
168169
Resource: !GetAtt
169170
- rCloudTrailDeadLetterQueue
170171
- Arn
171-
Principal:
172-
AWS:
173-
- !Sub 'arn:aws:iam::${AWS::AccountId}:root'
172+
Principal: '*'
173+
Condition:
174+
ArnEquals:
175+
'aws:Sourcearn': !Sub 'arn:aws:s3:::${pGuardDutyBucketName}'
174176
Queues:
175177
- !Ref rCloudTrailDeadLetterQueue
176178

@@ -244,9 +246,10 @@ Resources:
244246
Resource: !GetAtt
245247
- rControlTowerPreProcessedDeadLetterQueue
246248
- Arn
247-
Principal:
248-
AWS:
249-
- !Sub 'arn:aws:iam::${AWS::AccountId}:root'
249+
Principal: '*'
250+
Condition:
251+
ArnEquals:
252+
'aws:Sourcearn': !Sub 'arn:aws:s3:::${pGuardDutyBucketName}'
250253
Queues:
251254
- !Ref rControlTowerPreProcessedDeadLetterQueue
252255

@@ -696,4 +699,4 @@ Outputs:
696699
Value: !GetAtt [rGuardDutyQueue, Arn]
697700
oDeepwatchRoleArn:
698701
Description: The Arn of the IAM Role for Deepwatch log ingestion, supply to Deepwatch onboarding engineer
699-
Value: !GetAtt [rDeepwatchRole, Arn]
702+
Value: !GetAtt [rDeepwatchRole, Arn]

0 commit comments

Comments
 (0)