Apply terraform fmt for CI
Some checks failed
terraform-dev / validate (push) Failing after 47s
terraform-dev / plan (push) Has been skipped
terraform-dev / apply (push) Has been skipped

This commit is contained in:
Alexandr
2026-03-25 07:31:02 +03:00
parent ed66d17b70
commit 8f0f9b7f47
25 changed files with 317 additions and 317 deletions

View File

@ -18,9 +18,9 @@ resource "grafana_contact_point" "contact_points" {
dynamic "slack" {
for_each = each.value.type == "slack" ? [1] : []
content {
url = each.value.settings["webhook_url"]
title = try(local.contact_point_templates[each.value.name].title, null)
text = local.contact_point_templates[each.value.name].template
url = each.value.settings["webhook_url"]
title = try(local.contact_point_templates[each.value.name].title, null)
text = local.contact_point_templates[each.value.name].template
}
}
}

View File

@ -1,4 +1,4 @@
output "contact_point_ids" {
description = "Mapping of contact point names to their IDs"
value = { for k, v in grafana_contact_point.contact_points : k => v.id }
value = { for k, v in grafana_contact_point.contact_points : k => v.id }
}

View File

@ -1,6 +1,6 @@
variable "contact_points" {
description = "List of contact points for Grafana alerts"
type = list(object({
type = list(object({
name = string
type = string
settings = map(string)

View File

@ -1,7 +1,7 @@
terraform {
required_providers {
grafana = {
source = "grafana/grafana"
source = "grafana/grafana"
}
}
}