pagerduty_tag_assignment

A tag is applied to Escalation Policies, Teams or Users and can be used to filter them.

Example Usage

resource "pagerduty_tag" "example" {
  label = "API"
}
resource "pagerduty_team" "engteam" {
  name = "Engineering"
}
resource "pagerduty_tag_assignment" "example" {
  tag_id      = pagerduty_tag.example.id
  entity_type = "teams"
  entity_id   = pagerduty_team.engteam.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Tag assignments can be imported using the id which is constructed by taking the entity Type, entity ID and the tag ID separated by a dot, e.g.

$ terraform import pagerduty_tag_assignment.main users.P7HHMVK.PYC7IQQ