Skip to content

Commit c61b7b0

Browse files
committed
CCM-10246: Lambda edge log group
1 parent d9b3cff commit c61b7b0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

infrastructure/modules/lambda/cloudwatch_log_group.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ resource "aws_cloudwatch_log_group" "main" {
1212
}
1313

1414
resource "aws_cloudwatch_log_group" "main_edge" {
15-
count = var.lambda_at_edge ? 1 : 0
15+
count = var.lambda_at_edge ? 1 : 0
1616
name = "/aws/lambda/us-east-1.${local.csi}"
1717
retention_in_days = var.log_retention_in_days
1818
kms_key_id = var.kms_key_arn

infrastructure/modules/lambda/data_iam_policy_document_put_logs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ data "aws_iam_policy_document" "put_logs" {
1111
#trivy:ignore:aws-iam-no-policy-wildcards
1212
resources = flatten([[
1313
"${aws_cloudwatch_log_group.main.arn}:*",
14-
], var.lambda_at_edge ? [
15-
"${aws_cloudwatch_log_group.main_edge[0].arn}:*",
14+
], var.lambda_at_edge ? [
15+
"${aws_cloudwatch_log_group.main_edge[0].arn}:*",
1616
] : []])
1717
}
1818

0 commit comments

Comments
 (0)