» pagerduty_vendor

Use this data source to get information about a specific vendor that you can use for a service integration (e.g Amazon Cloudwatch, Splunk, Datadog).

» Example Usage

data "pagerduty_vendor" "datadog" {
  name = "Datadog"
}

resource "pagerduty_user" "example" {
  name  = "Earline Greenholt"
  email = "125.greenholt.earline@graham.name"
  teams = ["${pagerduty_team.example.id}"]
}

resource "pagerduty_escalation_policy" "foo" {
  name      = "Engineering Escalation Policy"
  num_loops = 2

  rule {
    escalation_delay_in_minutes = 10

    target {
      type = "user"
      id   = "${pagerduty_user.example.id}"
    }
  }
}

resource "pagerduty_service" "example" {
  name                    = "My Web App"
  auto_resolve_timeout    = 14400
  acknowledgement_timeout = 600
  escalation_policy       = "${pagerduty_escalation_policy.example.id}"
}

resource "pagerduty_service_integration" "example" {
  name    = "Datadog Integration"
  vendor  = "${data.pagerduty_vendor.datadog.id}"
  service = "${pagerduty_service.example.id}"
  type    = "generic_events_api_inbound_integration"
}

» Argument Reference

The following arguments are supported:

  • name - (Required) The vendor name to use to find a vendor in the PagerDuty API.

» Attributes Reference

  • id - The ID of the found vendor.
  • name - The short name of the found vendor.
  • type - The generic service type for this vendor.