forked from giranm/pagerduty-terraform-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 1
/
user_contact_methods.tf
33 lines (29 loc) · 1006 Bytes
/
user_contact_methods.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
PagerDuty User Contact Methods
Ref: https://www.terraform.io/docs/providers/pagerduty/r/user_contact_method.html
*/
/*
Single User Example: Support Responder Catelyn Stark
Phone, SMS, and email notification methods
NB. Users need to download the mobile app and sign-in if they want to configure push notifications.
*/
resource "pagerduty_user_contact_method" "catelyn_stark_phone" {
user_id = pagerduty_user.catelyn_stark.id
type = "phone_contact_method"
country_code = "+1"
address = "2345678910"
label = "Work"
}
resource "pagerduty_user_contact_method" "catelyn_stark_sms" {
user_id = pagerduty_user.catelyn_stark.id
type = "sms_contact_method"
country_code = "+1"
address = "2345678910"
label = "Work"
}
resource "pagerduty_user_contact_method" "catelyn_stark_email" {
user_id = pagerduty_user.catelyn_stark.id
type = "email_contact_method"
address = "[email protected]"
label = "Work"
}