Skip to content

Commit d7b9fe9

Browse files
committed
CCM-13768: restrict access to the queue
1 parent b5bf9fc commit d7b9fe9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

infrastructure/terraform/components/dl/module_sqs_print_analyser.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,11 @@ data "aws_iam_policy_document" "sqs_print_analyser" {
3232
resources = [
3333
"arn:aws:sqs:${var.region}:${var.aws_account_id}:${local.csi}-print-analyser-queue"
3434
]
35+
36+
condition {
37+
test = "ArnEquals"
38+
variable = "aws:SourceArn"
39+
values = [module.eventbridge.event_bus_arn]
40+
}
3541
}
3642
}

0 commit comments

Comments
 (0)