Use this data source to get information about a specific user that you can use for other PagerDuty resources.
data "pagerduty_user" "me" {
email = "me@example.com"
}
resource "pagerduty_escalation_policy" "foo" {
name = "Engineering Escalation Policy"
num_loops = 2
rule {
escalation_delay_in_minutes = 10
target {
type = "user"
id = data.pagerduty_user.me.id
}
}
}
The following arguments are supported:
email
- (Required) The email to use to find a user in the PagerDuty API.id
- The ID of the found user.name
- The short name of the found user.role
- The role of the found user.job_title
- The job title of the found user.time_zone
- The timezone of the found user.description
- The human-friendly description of the found user.