Skip to content

Commit 9f3b7f9

Browse files
authored
Merge pull request #46 from cloudina/master
Update iam.tf
2 parents e8f60f1 + 0f0055b commit 9f3b7f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iam.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
resource "aws_cloudwatch_log_group" "es_cloudwatch_log_group" {
22

33
for_each = { for k, v in var.log_publishing_options :
4-
k => v if var.enabled && lookup(v, "enabled", false) && lookup(v, "cloudwatch_log_group_arn", null) == null
4+
k => v if var.enabled && lookup(v, "enabled", false) && lookup(v, "cloudwatch_log_group_name", null) != null
55
}
66

7-
name = lookup(each.value, "cloudwatch_log_group_name", null)
7+
name = each.value["cloudwatch_log_group_name"]
88
retention_in_days = lookup(each.value, "log_publishing_options_retention", var.log_publishing_options_retention)
99
tags = merge(lookup(each.value, "tags", null), var.tags)
1010
}

0 commit comments

Comments
 (0)