diff --git a/infrastructure/modules/container-apps/variables.tf b/infrastructure/modules/container-apps/variables.tf index e7f1f9120..54fb21757 100644 --- a/infrastructure/modules/container-apps/variables.tf +++ b/infrastructure/modules/container-apps/variables.tf @@ -156,7 +156,7 @@ variable "use_apex_domain" { } variable "enable_alerting" { - description = "Whether monitoring and alerting is enabled for the PostgreSQL Flexible Server." + description = "Whether monitoring and alerting is enabled." type = bool } diff --git a/infrastructure/modules/infra/main.tf b/infrastructure/modules/infra/main.tf index 5e2c22a84..328e1ac94 100644 --- a/infrastructure/modules/infra/main.tf +++ b/infrastructure/modules/infra/main.tf @@ -79,7 +79,7 @@ module "app_insights_audit" { log_analytics_workspace_id = module.log_analytics_workspace_audit.id - enable_alerting = var.enable_alerting + enable_alerting = var.enable_alerting } module "private_link_scoped_service_law" { diff --git a/infrastructure/modules/infra/variables.tf b/infrastructure/modules/infra/variables.tf index 1eff584b1..149e7c5d8 100644 --- a/infrastructure/modules/infra/variables.tf +++ b/infrastructure/modules/infra/variables.tf @@ -48,6 +48,11 @@ variable "cae_zone_redundancy_enabled" { type = bool } +variable "enable_alerting" { + description = "Whether monitoring and alerting is enabled." + type = bool +} + locals { hub_vnet_rg_name = "rg-hub-${var.hub}-uks-hub-networking" } diff --git a/infrastructure/terraform/main.tf b/infrastructure/terraform/main.tf index 22d1f1a2a..e0e790003 100644 --- a/infrastructure/terraform/main.tf +++ b/infrastructure/terraform/main.tf @@ -18,6 +18,7 @@ module "infra" { protect_keyvault = var.protect_keyvault vnet_address_space = var.vnet_address_space cae_zone_redundancy_enabled = var.cae_zone_redundancy_enabled + enable_alerting = var.enable_alerting } module "shared_config" { diff --git a/infrastructure/terraform/variables.tf b/infrastructure/terraform/variables.tf index cd6e78767..87a11a2c4 100644 --- a/infrastructure/terraform/variables.tf +++ b/infrastructure/terraform/variables.tf @@ -157,7 +157,7 @@ variable "alert_window_size" { } variable "enable_alerting" { - description = "Whether monitoring and alerting is enabled for the PostgreSQL Flexible Server." + description = "Whether monitoring and alerting is enabled." type = bool default = false }