» 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:

  • user_id - The ID of the user belonging to the team.
  • team_id - The team ID the user belongs to.

» Import

Team memberships can be imported using the user_id and team_id, e.g.

$ terraform import pagerduty_team_membership.main PLBP09X:PLB09Z