terraform-provider-grafana icon indicating copy to clipboard operation
terraform-provider-grafana copied to clipboard

PagerDuty alert notification channel does not set the integration key properly

Open ryanisnan opened this issue 4 years ago • 1 comments

Terraform Version

Terraform v0.12.26
+ provider.aws v2.45.0
+ provider.grafana v1.5.0
+ provider.newrelic v1.15.1
+ provider.template v2.1.2

Affected Resource(s)

  • grafana_alert_notification

Expected Behavior

Pagerduty alert notification should have the integration key set

Actual Behavior

Pagerduty alert notification does not have the integration key set

Steps to Reproduce

Sample resource:

resource "grafana_alert_notification" "pagerduty_low" {
  name = "PagerDuty - CloudWatch Low Urgency"
  type = "pagerduty"
  is_default = false
  settings = {
    integration_key = "XXX"
    severity = "error"
    auto_resolve = true
  }
}

The documentation on the official Terraform site is also pretty lacking with respect to this provider. Specifically, the alert notification types are not explained very much at all, and the documentation that is linked to is also deficient.

ryanisnan avatar Jun 10 '20 23:06 ryanisnan

From what I can see here and also in the docs example, the settings are in camel case, so integrationKey and autoResolve.

Also, integrationKey should maybe be in secure_settings instead

Tenchi2xh avatar Jun 25 '21 14:06 Tenchi2xh

grafana_alert_notification is now deprecated in favor of the new alerting features. See the Alerting category. So this issue will not be fixed

julienduchesne avatar Oct 17 '22 18:10 julienduchesne