Skip to content

Commit 0cf5e4d

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 bc45172 commit 0cf5e4d

File tree

2 files changed

+1627
-0
lines changed

2 files changed

+1627
-0
lines changed

infrastructure/modules/infra/main.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,21 @@ module "app_insights_audit" {
8484
enable_alerting = var.enable_alerting
8585
}
8686

87+
module "dashboard" {
88+
source = "../dtos-devops-templates/infrastructure/modules/dashboard"
89+
90+
name = "dash-${var.app_short_name}-${var.environment}-notifications"
91+
location = var.region
92+
resource_group_name = azurerm_resource_group.main.name
93+
94+
dashboard_properties = templatefile("${path.module}/../../modules/infra/templates/dash-notifications-template.tpl",
95+
{
96+
environment = var.environment
97+
sub_id = data.azurerm_subscription.current.id
98+
}
99+
)
100+
}
101+
87102
module "private_link_scoped_service_law" {
88103
source = "../dtos-devops-templates/infrastructure/modules/private-link-scoped-service"
89104

0 commit comments

Comments
 (0)