Skip to content

Commit 07bbcf5

Browse files
committed
add a Dashboard for notifications
Now that we have a dashboard module available, this adds the properties for a notifications dashboard. This is based on JSON exported from dashboards created in the portal UI. NHSDigital/dtos-devops-templates#261
1 parent fa75177 commit 07bbcf5

File tree

3 files changed

+1530
-0
lines changed

3 files changed

+1530
-0
lines changed

infrastructure/modules/container-apps/data.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
data "azurerm_client_config" "current" {}
22

3+
data "azurerm_subscription" "current" {}
4+
35
data "azuread_group" "postgres_sql_admin_group" {
46
display_name = var.postgres_sql_admin_group
57
}

infrastructure/modules/container-apps/main.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,18 @@ module "azurerm_application_insights_standard_web_test" {
6363
application_insights_id = var.app_insights_id
6464
target_url = var.target_url
6565
}
66+
67+
module "dashboard" {
68+
source = "../dtos-devops-templates/infrastructure/modules/dashboard"
69+
70+
name = "dash-${var.app_short_name}-${var.environment}-notifications"
71+
location = var.region
72+
resource_group_name = local.resource_group_name
73+
74+
dashboard_properties = templatefile("${path.module}/../../modules/container-apps/templates/dash-notifications-template.tpl",
75+
{
76+
environment = var.environment
77+
sub_id = data.azurerm_subscription.current.subscription_id
78+
}
79+
)
80+
}

0 commit comments

Comments
 (0)