Skip to content

Commit 5483c3e

Browse files
committed
add new alerting on container app jobs
1 parent ea94878 commit 5483c3e

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

infrastructure/environments/review/variables.tfvars

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ vnet_address_space = "10.142.0.0/16"
1010
deploy_database_as_container = true
1111
seed_demo_data = true
1212
nhs_notify_api_message_batch_url = "https://int.api.service.nhs.uk/comms/v1/message-batches"
13-
enable_alerting = true

infrastructure/modules/container-apps/jobs.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ module "db_setup" {
8888
local.common_env,
8989
var.deploy_database_as_container ? local.container_db_env : local.azure_db_env
9090
)
91+
92+
# alerts
93+
action_group_id = var.action_group_id
94+
enable_alerting = var.enable_alerting
95+
log_analytics_workspace_id = var.log_analytics_workspace_audit_id
96+
9197
depends_on = [
9298
module.queue_storage_role_assignment,
9399
module.blob_storage_role_assignment
@@ -130,6 +136,12 @@ module "scheduled_jobs" {
130136
var.deploy_database_as_container ? local.container_db_env : local.azure_db_env
131137
)
132138

139+
140+
# alerts
141+
action_group_id = var.action_group_id
142+
enable_alerting = var.enable_alerting
143+
log_analytics_workspace_audit_id = var.log_analytics_workspace_audit_id
144+
133145
# Ensure RBAC role assignments are created before the job definition finalizes
134146
depends_on = [
135147
module.blob_storage_role_assignment,

infrastructure/modules/container-apps/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ variable "log_analytics_workspace_audit_id" {
7878
type = string
7979
}
8080

81+
8182
variable "deploy_database_as_container" {
8283
description = "Whether to deploy the database as a container or as an Azure postgres flexible server."
8384
type = bool

0 commit comments

Comments
 (0)