Skip to content

Commit ee00c65

Browse files
committed
testing updates to policy for opt-in
1 parent 28bf44b commit ee00c65

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

aws_sra_examples/solutions/guardduty/guardduty_org/templates/sra-guardduty-org-delivery-kms-key.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ Resources:
9797
Effect: Allow
9898
Action: kms:GenerateDataKey
9999
Resource: '*'
100-
Principal:
101-
Service: '*'
100+
Principal: '*'
102101
Condition:
103102
StringLike:
104103
aws:PrincipalServiceName: guardduty.*.amazonaws.com

aws_sra_examples/solutions/guardduty/guardduty_org/templates/sra-guardduty-org-delivery-s3-bucket.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ Resources:
136136
- s3:GetBucketLocation
137137
- s3:ListBucket
138138
Resource: !Sub arn:aws:s3:::${rGuardDutyDeliveryS3Bucket}
139-
Principal:
140-
Service: '*'
139+
Principal: '*'
141140
Condition:
142141
StringLike:
143142
aws:PrincipalServiceName: guardduty.*.amazonaws.com
@@ -161,8 +160,7 @@ Resources:
161160
# StringEquals:
162161
# s3:x-amz-acl: bucket-owner-full-control
163162
Resource: !Sub arn:aws:s3:::${rGuardDutyDeliveryS3Bucket}/*
164-
Principal:
165-
Service: '*'
163+
Principal: '*'
166164
Condition:
167165
StringLike:
168166
aws:PrincipalServiceName: guardduty.*.amazonaws.com
@@ -186,8 +184,7 @@ Resources:
186184
StringNotEquals:
187185
s3:x-amz-server-side-encryption: aws:kms
188186
Resource: !Sub arn:aws:s3:::${rGuardDutyDeliveryS3Bucket}/*
189-
Principal:
190-
Service: '*'
187+
Principal: '*'
191188
Condition:
192189
StringLike:
193190
aws:PrincipalServiceName: guardduty.*.amazonaws.com
@@ -211,8 +208,7 @@ Resources:
211208
StringNotEquals:
212209
s3:x-amz-server-side-encryption-aws-kms-key-id: !Sub ${pGuardDutyOrgDeliveryKMSKeyArn}
213210
Resource: !Sub arn:aws:s3:::${rGuardDutyDeliveryS3Bucket}/*
214-
Principal:
215-
Service: '*'
211+
Principal: '*'
216212
Condition:
217213
StringLike:
218214
aws:PrincipalServiceName: guardduty.*.amazonaws.com

0 commit comments

Comments
 (0)