File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
modules/scanning-delegate-role Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -205,19 +205,13 @@ data "aws_iam_policy_document" "scanning_orchestrator_policy_document" {
205205 resources = [" arn:${ data . aws_partition . current . partition } :kms:*:*:key/*" ]
206206
207207 // The following conditions enforce that decrypt action
208- // can only be performed on snapshots from calls by ebs API.
208+ // can only be performed from calls by ebs API.
209209 condition {
210210 test = " ForAnyValue:StringEquals"
211211 variable = " kms:EncryptionContextKeys"
212212 values = [" aws:ebs:id" ]
213213 }
214214
215- condition {
216- test = " StringLike"
217- variable = " kms:EncryptionContext:aws:ebs:id"
218- values = [" snap-*" ]
219- }
220-
221215 condition {
222216 test = " StringLike"
223217 variable = " kms:ViaService"
@@ -378,19 +372,13 @@ data "aws_iam_policy_document" "scanning_worker_policy_document" {
378372 resources = [" arn:${ data . aws_partition . current . partition } :kms:*:*:key/*" ]
379373
380374 // The following conditions enforce that decrypt action
381- // can only be performed on snapshots from calls by ebs API.
375+ // can only be performed from calls by ebs API.
382376 condition {
383377 test = " ForAnyValue:StringEquals"
384378 variable = " kms:EncryptionContextKeys"
385379 values = [" aws:ebs:id" ]
386380 }
387381
388- condition {
389- test = " StringLike"
390- variable = " kms:EncryptionContext:aws:ebs:id"
391- values = [" snap-*" ]
392- }
393-
394382 condition {
395383 test = " StringLike"
396384 variable = " kms:ViaService"
You can’t perform that action at this time.
0 commit comments