PagerDuty / terraform-provider-pagerduty

Terraform PagerDuty provider
https://www.terraform.io/docs/providers/pagerduty/
Mozilla Public License 2.0
204 stars 208 forks source link

Bug: pagerduty_service breaks when manually changing alert grouping #860

Open cgetzen opened 2 months ago

cgetzen commented 2 months ago

Terraform Version

1.5.4 (last open version)

Affected Resource(s)

Terraform Configuration Files

resource "pagerduty_service" "service" {
  name                    = "${var.environment} ${var.component}"
  auto_resolve_timeout    = 24 * 60 * 60 # 1 day
  acknowledgement_timeout = 30 * 60      # 30 minutes
  escalation_policy       = data.pagerduty_escalation_policy.team.id
  alert_creation          = "create_alerts_and_incidents"

  auto_pause_notifications_parameters {
    enabled = true
    timeout = 600
  }

  incident_urgency_rule {
    type    = "constant"
    urgency = "severity_based"
  }
}

Debug Output

Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.

Panic Output

│ Error: When using Alert grouping parameters configuration of type "content_based" is in use, attributes "aggregate" and "fields" are required

Expected Behavior

Actual Behavior

The error