Option to edit maintenance alerts via API
Maintenance alerts are created automatically when a maintenance window is set and these alerts by default send an email to the project owner.
If you want something different in those alerts (Slack notification, PagerDuty, etc.), having to go one by one when you have multiple clusters is not practical, lot of manual interaction for a managed service.
The goal of this request is to let configure/edit/create these alerts using the API, so it can be later included in Terraform.
-
Christophe Ashworth commented
I agree. I have the same issue. It would be so simple to set them up along with my other alert configuration.
But there's a way to create maintenance windows alerts, they are just not in the doc.
with:
resource "mongodbatlas_alert_configuration" "maintenance_started" {
...
event_type = "MAINTENANCE_STARTED"
...
}resource "mongodbatlas_alert_configuration" "maintenance_in_advanced" {
...
event_type = "MAINTENANCE_IN_ADVANCED"
...but that wont stop the default ones to be created as well...