Skip to content

Commit

Permalink
fixed bad ref to relative budget in absolute budget
Browse files Browse the repository at this point in the history
  • Loading branch information
CharbelNaba committed Sep 25, 2023
1 parent 01e9e8f commit 8a29c91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions budget.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ resource "google_billing_budget" "absolute_amount_budget" {
}

dynamic "all_updates_rule" {
for_each = length(var.budgets.relative_amount.alerts.notification_channels) > 0 ? [1] : []
for_each = length(var.budgets.absolute_amount.alerts.notification_channels) > 0 ? [1] : []
content {
monitoring_notification_channels = var.budgets.relative_amount.alerts.notification_channels
pubsub_topic = var.budgets.relative_amount.alerts.pubsub_topic
disable_default_iam_recipients = var.budgets.relative_amount.alerts.disable_default_iam_recipients
monitoring_notification_channels = var.budgets.absolute_amount.alerts.notification_channels
pubsub_topic = var.budgets.absolute_amount.alerts.pubsub_topic
disable_default_iam_recipients = var.budgets.absolute_amount.alerts.disable_default_iam_recipients
}
}

Expand Down

0 comments on commit 8a29c91

Please sign in to comment.