Skip to content

Commit edaa4ce

Browse files
committed
correctly access map value in prometheus module
1 parent bb85644 commit edaa4ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • aws/telemetry/modules/prometheus-workspace

aws/telemetry/modules/prometheus-workspace/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ resource "aws_prometheus_workspace" "this" {
55
dynamic logging_configuration {
66
for_each = var.logging_configuration
77
content {
8-
log_group_arn = data.aws_cloudwatch_log_group.this.arn
8+
log_group_arn = data.aws_cloudwatch_log_group.this[each.value].arn
99
}
1010
}
1111
}
1212

1313
data "aws_cloudwatch_log_group" "this" {
1414
for_each = var.logging_configuration
15-
name = each.value.name
15+
name = each.value
1616
}
1717

1818
resource "aws_iam_role" "ingestion" {

0 commit comments

Comments
 (0)