pagerduty_business_service_subscriber

A business service subscriber allows you to subscribe users or teams to automatically receive updates about key business services.

Example Usage

resource "pagerduty_business_service" "example" {
  name             = "My Web App"
  description      = "A very descriptive description of this business service"
  point_of_contact = "PagerDuty Admin"
  team             = "P37RSRS"
}
resource "pagerduty_team" "engteam" {
  name = "Engineering"
}
resource "pagerduty_user" "example" {
  name  = "Earline Greenholt"
  email = "125.greenholt.earline@graham.name"
}
resource "pagerduty_business_service_subscriber" "team_example" {
  subscriber_id = pagerduty_team.engteam.id
  subscriber_type = "team"
  business_service_id = pagerduty_business_service.example.id
}
resource "pagerduty_business_service_subscriber" "user_example" {
  subscriber_id = pagerduty_user.example.id
  subscriber_type = "user"
  business_service_id = pagerduty_business_service.example.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Services can be imported using the id using the related business service ID, the subscriber type and the subscriber ID separated by a dot, e.g.

$ terraform import pagerduty_business_service_subscriber.main PLBP09X.team.PLBP09X