Terraform 0.11

newrelic_alert_policy_channel




terraform

newrelic_alert_policy_channel

उदाहरण उपयोग

resource "newrelic_alert_policy" "foo" {
  name = "foo"
}

resource "newrelic_alert_channel" "foo" {
  name = "foo"
  type = "email"

  configuration = {
    recipients              = "[email protected]"
    include_json_attachment = "1"
  }
}

resource "newrelic_alert_policy_channel" "foo" {
  policy_id  = "${newrelic_alert_policy.foo.id}"
  channel_id = "${newrelic_alert_channel.foo.id}"
}

तर्क संदर्भ

निम्नलिखित तर्क समर्थित हैं:

  • policy_id - (आवश्यक) पॉलिसी की आईडी।
  • channel_id - (आवश्यक) चैनल की आईडी।