terraform/website/source/docs/providers/pagerduty/d/escalation_policy.html.mark...

1.2 KiB

layout page_title sidebar_current description
pagerduty PagerDuty: pagerduty_escalation_policy docs-pagerduty-datasource-escalation-policy Provides information about a Escalation Policy. This data source can be helpful when an escalation policy is handled outside Terraform but still want to reference it in other resources.

pagerduty_escalation_policy

Use this data source to get information about a specific escalation policy that you can use for other PagerDuty resources.

Example Usage

data "pagerduty_escalation_policy" "test" {
  name = "Engineering Escalation Policy"
}

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

Argument Reference

The following arguments are supported:

  • name - (Required) The name to use to find an escalation policy in the PagerDuty API.

Attributes Reference

  • name - The short name of the found escalation policy.