» pagerduty_team_membership
A team membership manages memberships within a team.
» Example Usage
resource "pagerduty_user" "foo" {
name = "foo"
email = "foo@bar.com"
}
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}"
}
» Argument Reference
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.
» Attributes Reference
The following attributes are exported:
» Import
Team memberships can be imported using the user_id
and team_id
, e.g.
$ terraform import pagerduty_team_membership.main PLBP09X:PLB09Z