mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 02:18:50 +00:00
chore(portal): Send alert notifications to mobile channels (#4463)
This commit is contained in:
@@ -215,6 +215,20 @@ module "ops" {
|
||||
|
||||
pagerduty_auth_token = var.pagerduty_auth_token
|
||||
|
||||
additional_notification_channels = [
|
||||
# Andrew
|
||||
## Mobile App
|
||||
"projects/firezone-prod/notificationChannels/203795594709100952",
|
||||
## SMS
|
||||
"projects/firezone-prod/notificationChannels/1314108963890678627",
|
||||
# Brian
|
||||
## Mobile App
|
||||
"projects/firezone-prod/notificationChannels/16177228986287373178",
|
||||
# Jamil
|
||||
## Mobile App
|
||||
"projects/firezone-prod/notificationChannels/1608881766413151733"
|
||||
]
|
||||
|
||||
api_host = module.api.host
|
||||
web_host = module.web.host
|
||||
}
|
||||
|
||||
@@ -29,7 +29,8 @@ resource "google_monitoring_notification_channel" "pagerduty" {
|
||||
locals {
|
||||
notification_channels = concat(
|
||||
[google_monitoring_notification_channel.slack.name],
|
||||
var.pagerduty_auth_token != null ? [google_monitoring_notification_channel.pagerduty[0].name] : []
|
||||
var.additional_notification_channels,
|
||||
google_monitoring_notification_channel.pagerduty[*].name
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,12 @@ variable "pagerduty_auth_token" {
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "additional_notification_channels" {
|
||||
type = list(string)
|
||||
default = []
|
||||
description = "List of mobile app notification channels"
|
||||
}
|
||||
|
||||
variable "api_host" {
|
||||
type = string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user