From 80e09ccfd8d74e262651914b5202e94b2672dac6 Mon Sep 17 00:00:00 2001 From: ividito Date: Thu, 17 Oct 2024 16:49:43 -0300 Subject: [PATCH] fix: adjust log group count --- infrastructure/s3_event_bridge_lambda.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/s3_event_bridge_lambda.tf b/infrastructure/s3_event_bridge_lambda.tf index 52407625..9fd58583 100644 --- a/infrastructure/s3_event_bridge_lambda.tf +++ b/infrastructure/s3_event_bridge_lambda.tf @@ -53,7 +53,7 @@ resource "aws_iam_policy" "lambda_logging" { "logs:CreateLogStream", "logs:PutLogEvents" ], - "Resource": "${aws_cloudwatch_log_group.group.arn}", + "Resource": "${aws_cloudwatch_log_group.group[0].arn}", "Effect": "Allow" } ]