Skip to content

Commit 131cc4d

Browse files
committed
CCM-10246: test
1 parent 096ef13 commit 131cc4d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

infrastructure/modules/lambda/data_iam_policy_document_put_logs.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ data "aws_iam_policy_document" "put_logs" {
99
]
1010

1111
#trivy:ignore:aws-iam-no-policy-wildcards
12-
resources = [
12+
resources = flatten([
1313
"${aws_cloudwatch_log_group.main.arn}:*",
14-
]
14+
], var.is_edge_lambda ? [
15+
"${aws_cloudwatch_log_group.main_us_east_1[0].arn}:*",
16+
] : [])
1517
}
1618

1719
dynamic "statement" {

0 commit comments

Comments
 (0)