Skip to content

Commit

Permalink
CCL-1627 - conditional alerts/dashboards (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ukho-cfreeman authored Jan 27, 2025
1 parent 52447ac commit b9a9b35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ module "dynatrace_management_zones" {
}

module "ghes_alerts" {
source = "./alerts/ghes"

source = "./alerts/ghes"
count = var.tenant_vars.ghes_alert != null ? 1 : 0
ghes_alert_config = var.tenant_vars.ghes_alert
}

module "ghes_dashboards" {
source = "./dashboards/ghes_dashboards"
count = var.tenant_vars.ghes_dashboard_hostname != null ? 1 : 0
ghes_hostname = var.tenant_vars.ghes_dashboard_hostname
}

0 comments on commit b9a9b35

Please sign in to comment.