This TF module allows the declaration of all PagerDuty users in an account. It does not support teams and thus can be used with any PagerDuty account.
module "users" {
source = "devops-workflow/users/pagerduty"
version = "0.2.0"
pagerduty_token = "${var.pagerduty_token}"
users = [
{
name = "Test User 2"
email = "user2@example.com"
color = "red"
description = "Test user"
job_title = "Developer 2"
role = "team_responder"
},
]
}
Description: The PagerDuty API token. This is generally intended to be defined by an environment variable (i.e. TF_VAR_pagerduty_token
)
Acceptable Values: An API key
Default Value: N/A
Description: A list of maps representing users. See usage or examples. name and email are required
Acceptable Values: A list of maps.
Default Value: N/A