From 25a527162e9bfc929886b90e79fac30ad8bfa1dc Mon Sep 17 00:00:00 2001 From: chinnayyachintha Date: Sat, 26 Jul 2025 15:44:08 +0530 Subject: [PATCH] fix: replace deprecated log_group.name with id --- vpc-flow-logs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpc-flow-logs.tf b/vpc-flow-logs.tf index fc7ba90be..70b033a42 100644 --- a/vpc-flow-logs.tf +++ b/vpc-flow-logs.tf @@ -25,7 +25,7 @@ locals { flow_log_cloudwatch_log_group_name_suffix = var.flow_log_cloudwatch_log_group_name_suffix == "" ? local.vpc_id : var.flow_log_cloudwatch_log_group_name_suffix flow_log_group_arns = [ for log_group in aws_cloudwatch_log_group.flow_log : - "arn:${data.aws_partition.current[0].partition}:logs:${data.aws_region.current[0].region}:${data.aws_caller_identity.current[0].account_id}:log-group:${log_group.name}:*" + "arn:${data.aws_partition.current[0].partition}:logs:${data.aws_region.current[0].region}:${data.aws_caller_identity.current[0].account_id}:log-group:${log_group.id}:*" ] }