A team membership manages memberships within a team.
resource "pagerduty_user" "foo" {
name = "foo"
email = "[email protected]"
}
resource "pagerduty_team" "foo" {
name = "foo"
description = "foo"
}
resource "pagerduty_team_membership" "foo" {
user_id = "${pagerduty_user.foo.id}"
team_id = "${pagerduty_team.foo.id}"
}
The following arguments are supported:
user_id - (Required) The ID of the user to add to the team. team_id - (Required) The ID of the team in which the user will belong. The following attributes are exported:
Team memberships can be imported using the user_id and team_id, e.g.
$ terraform import pagerduty_team_membership.main PLBP09X:PLB09Z
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/pagerduty/r/team_membership.html