Skip to content

Commit e56af5d

Browse files
CMM-13767: Adding restriction
1 parent 7d7836d commit e56af5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

infrastructure/terraform/components/dl/module_sqs_move_scanned_files.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,11 @@ data "aws_iam_policy_document" "sqs_move_scanned_files" {
3434
resources = [
3535
"arn:aws:sqs:${var.region}:${var.aws_account_id}:${local.csi}-move-scanned-files-queue"
3636
]
37+
38+
condition {
39+
test = "ArnLike"
40+
variable = "aws:SourceArn"
41+
values = [ "arn:aws:events:${var.region}:${var.aws_account_id}:event-bus/${default_cloudwatch_event_bus_name}" ]
42+
}
3743
}
3844
}

0 commit comments

Comments
 (0)