We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb85644 commit edaa4ceCopy full SHA for edaa4ce
1 file changed
aws/telemetry/modules/prometheus-workspace/main.tf
@@ -5,14 +5,14 @@ resource "aws_prometheus_workspace" "this" {
5
dynamic logging_configuration {
6
for_each = var.logging_configuration
7
content {
8
- log_group_arn = data.aws_cloudwatch_log_group.this.arn
+ log_group_arn = data.aws_cloudwatch_log_group.this[each.value].arn
9
}
10
11
12
13
data "aws_cloudwatch_log_group" "this" {
14
15
- name = each.value.name
+ name = each.value
16
17
18
resource "aws_iam_role" "ingestion" {
0 commit comments