grafana_oncall_route (Resource)

Example Usage

data "grafana_oncall_slack_channel" "example_slack_channel" {
  name = "example_slack_channel"
}

resource "grafana_oncall_escalation_chain" "default" {
  name = "default"
}

resource "grafana_oncall_integration" "example_integration" {
  name = "Grafana Integration"
  type = "grafana"
  default_route {
  }
}

resource "grafana_oncall_route" "example_route" {
  integration_id      = grafana_oncall_integration.example_integration.id
  escalation_chain_id = grafana_oncall_escalation_chain.default.id
  routing_regex       = "us-(east|west)"
  position            = 0
  slack {
    channel_id = data.grafana_oncall_slack_channel.example_slack_channel.slack_id
    enabled    = true
  }
  telegram {
    id      = "ONCALLTELEGRAMID"
    enabled = true
  }
  msteams {
    id      = "ONCALLMSTEAMSID"
    enabled = false
  }
}

Schema

Required

Optional

Read-Only

Nested Schema for msteams

Optional:

Nested Schema for slack

Optional:

Nested Schema for telegram

Optional:

Import

Import is supported using the following syntax:

terraform import grafana_oncall_route.name "{{ id }}"