File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,3 @@ vnet_address_space = "10.142.0.0/16"
1010deploy_database_as_container = true
1111seed_demo_data = true
1212nhs_notify_api_message_batch_url = " https://int.api.service.nhs.uk/comms/v1/message-batches"
13- enable_alerting = true
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ variable "log_analytics_workspace_audit_id" {
7878 type = string
7979}
8080
81+
8182variable "deploy_database_as_container" {
8283 description = " Whether to deploy the database as a container or as an Azure postgres flexible server."
8384 type = bool
You can’t perform that action at this time.
0 commit comments