Use this data source to get information about a specific schedule that you can use for other PagerDuty resources.
data "pagerduty_schedule" "test" {
name = "Daily Engineering Rotation"
}
resource "pagerduty_escalation_policy" "foo" {
name = "Engineering Escalation Policy"
num_loops = 2
rule {
escalation_delay_in_minutes = 10
target {
type = "schedule"
id = "${data.pagerduty_schedule.test.id}"
}
}
}
The following arguments are supported:
name - (Required) The name to use to find a schedule in the PagerDuty API. name - The short name of the found schedule.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/pagerduty/d/schedule.html