pagerduty_service_dependency

A service dependency is a relationship between two services that this service uses, or that are used by this service, and are critical for successful operation.

Example Usage

resource "pagerduty_service_dependency" "foo" {
    dependency {
        dependent_service {
            id = pagerduty_business_service.foo.id
            type = pagerduty_business_service.foo.type
        }
        supporting_service {
            id = pagerduty_service.foo.id
            type = pagerduty_service.foo.type
        }
    }
}

resource "pagerduty_service_dependency" "bar" {
    dependency {
        dependent_service {
            id = pagerduty_business_service.foo.id
            type = pagerduty_business_service.foo.type
        }
        supporting_service {
            id = pagerduty_service.two.id
            type = pagerduty_service.two.type
        }
    }
}

Argument Reference

The following arguments are supported:

Dependency supporting and dependent service supports the following:

Attributes Reference

The following attributes are exported:

NOTE: Due to the API supporting this resource, it does not support updating. To make changes to a service_dependency you'll need to destroy and then create a new one.

Import

Service dependencies can be imported using the related supporting service id, supporting service type (business_service or service) and the dependency id separated by a dot, e.g.

$ terraform import pagerduty_service_dependency.main P4B2Z7G.business_service.D5RTHKRNGU4PYE90PJ