Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions infrastructure/modules/infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ module "app_insights_audit" {

log_analytics_workspace_id = module.log_analytics_workspace_audit.id

# alerts
action_group_id = var.action_group_id
enable_alerting = var.enable_alerting
}

Expand Down
5 changes: 5 additions & 0 deletions infrastructure/modules/infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ variable "enable_alerting" {
type = bool
}

variable "action_group_id" {
type = string
description = "ID of the action group to notify."
}

locals {
hub_vnet_rg_name = "rg-hub-${var.hub}-uks-hub-networking"
}
1 change: 1 addition & 0 deletions infrastructure/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module "infra" {
vnet_address_space = var.vnet_address_space
cae_zone_redundancy_enabled = var.cae_zone_redundancy_enabled
enable_alerting = var.enable_alerting
action_group_id = var.deploy_infra ? module.infra[0].monitor_action_group_id : data.azurerm_monitor_action_group.main[0].id
}

module "shared_config" {
Expand Down
Loading