From 161e1ccd9e3c430248ba3896f5e60ad07d90a0e8 Mon Sep 17 00:00:00 2001 From: JoshuaLicense Date: Fri, 12 Jan 2024 21:39:31 +0000 Subject: [PATCH] fixup! feat: add `logging_config` --- iam.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iam.tf b/iam.tf index 436a4398..ae43797c 100644 --- a/iam.tf +++ b/iam.tf @@ -122,7 +122,7 @@ data "aws_iam_policy_document" "logs" { effect = "Allow" actions = compact([ - !var.use_existing_cloudwatch_log_group && var.attach_create_log_group_permission ? "logs:CreateLogGroup" : "", + !var.use_existing_cloudwatch_log_group && var.logging_log_group == null && var.attach_create_log_group_permission ? "logs:CreateLogGroup" : "", "logs:CreateLogStream", "logs:PutLogEvents" ])