Use this data source to get information about a specific team that you can use for other PagerDuty resources.
data "pagerduty_user" "me" {
email = "[email protected]"
}
data "pagerduty_team" "devops" {
name = "devops"
}
resource "pagerduty_escalation_policy" "foo" {
name = "DevOps Escalation Policy"
num_loops = 2
teams = ["${data.pagerduty_team.devops}"]
rule {
escalation_delay_in_minutes = 10
target {
type = "user"
id = "${data.pagerduty_user.me.id}"
}
}
}
The following arguments are supported:
name - (Required) The name of the team to find in the PagerDuty API. name - The name of the team. description - A description of the team.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/pagerduty/d/team.html