Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 403 creating pagerduty_escalation_policy when escalation_rule_assignment_strategy is set explicitly without teams ability #972

Open
cjgajard opened this issue Jan 28, 2025 · 1 comment

Comments

@cjgajard
Copy link
Contributor

Describe the bug
Error 403 at pagerduty_escalation_policy when escalation_rule_assignment_strategy is set explicitly without teams ability.

To Reproduce

resource "pagerduty_user" "user_test" {
  name  = "Earline Greenholt"
  email = "[email protected]"
}

resource "pagerduty_escalation_policy" "escalation_test" {
  name        = "Test Escalation Policy"

  rule {
    escalation_delay_in_minutes = "30"

    escalation_rule_assignment_strategy {
      type = "assign_to_everyone"
    }

    target {
      id   = pagerduty_user.user_test.id
      type = "user_reference"
    }
  }
}

Expected behavior
Create an escalation policy

Actual behavior
Error with HTTP Status code 403

@cjgajard
Copy link
Contributor Author

  • The provider should add documentation for this behavior.
  • The provider could check abilities and validate escalation_rule_assignment_strategy is not present.
  • The provider could retry 403s deleting escalation_rule_assignment_strategy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant