hmcts / dtsse-shared-infrastructure

0 stars 0 forks source link

Change budget alert index to `0` #136

Closed engineeringstuff closed 2 months ago

engineeringstuff commented 2 months ago

Change description

As requested from Daniel Wilson - change should be: From azurerm_dashboard_grafana.dashboard-grafana[count.index].id, To azurerm_dashboard_grafana.dashboard-grafana[0].id,

Checklist

infracost[bot] commented 2 months ago

Infracost free monthly run limit exceeded. Please contact hello@infracost.io to purchase usage pack.: 403 Forbidden Infracost free monthly run limit exceeded. Please contact hello@infracost.io to purchase usage pack.

hmcts-jenkins-d-to-i[bot] commented 2 months ago

Plan Result (aat)

Plan: 1 to add, 1 to change, 0 to destroy.
Change Result (Click me) ```hcl # azurerm_consumption_budget_resource_group.grafana-budget-alert[0] will be created + resource "azurerm_consumption_budget_resource_group" "grafana-budget-alert" { + amount = 500 + etag = (known after apply) + id = (known after apply) + name = "grafana-budget-alert" + resource_group_id = "/subscriptions/1c4f0704-a29e-403d-b719-b90c34ef14c9/resourceGroups/dtsse-aat" + time_grain = "Monthly" + filter { + dimension { + name = "ResourceId" + operator = "In" + values = [ + "/subscriptions/1c4f0704-a29e-403d-b719-b90c34ef14c9/resourceGroups/dtsse-aat/providers/Microsoft.Dashboard/grafana/dtsse-grafana-aat", ] } } + notification { + contact_emails = [] + contact_groups = [ + "DTSSE Alert (aat)", ] + contact_roles = [] + enabled = true + operator = "GreaterThanOrEqualTo" + threshold = 90 + threshold_type = "Forecasted" } + time_period { + end_date = (known after apply) + start_date = "2023-09-01T00:00:00Z" } } # module.alert-action-group.azurerm_resource_group_template_deployment.action-group will be updated in-place ~ resource "azurerm_resource_group_template_deployment" "action-group" { id = "/subscriptions/1c4f0704-a29e-403d-b719-b90c34ef14c9/resourceGroups/dtsse-aat/providers/Microsoft.Resources/deployments/DTSSE_Alert" name = "DTSSE_Alert" tags = {} ~ template_content = jsonencode( ~ { ~ parameters = { ~ actionGroupName = { ~ type = "String" -> "string" } ~ emailReceiverAddress = { ~ type = "String" -> "string" # (1 unchanged attribute hidden) } ~ emailReceiverName = { ~ type = "String" -> "string" # (1 unchanged attribute hidden) } ~ location = { ~ type = "String" -> "string" # (1 unchanged attribute hidden) } ~ shortName = { ~ type = "String" -> "string" } } # (3 unchanged attributes hidden) } ) # (6 unchanged attributes hidden) } Plan: 1 to add, 1 to change, 0 to destroy. ```