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

Cannot add escalation participant for opsgenie_schedule_rotation #193

Open
sixstr opened this issue Nov 17, 2020 · 1 comment
Open

Cannot add escalation participant for opsgenie_schedule_rotation #193

sixstr opened this issue Nov 17, 2020 · 1 comment

Comments

@sixstr
Copy link

sixstr commented Nov 17, 2020

Docs says i'm should be able to
https://registry.terraform.io/providers/opsgenie/opsgenie/latest/docs/resources/schedule_rotation#participant

Terraform Version

% terraform -v
Terraform v0.13.5
+ provider registry.terraform.io/opsgenie/opsgenie v0.5.1

Affected Resource(s)

  • opsgenie_schedule_rotation
  • opsgenie_escalation

Terraform Configuration Files

resource "opsgenie_schedule_rotation" "Day" {
  length      = 1
  name        = "Day"
  schedule_id = opsgenie_schedule.some_schedule.id
  start_date  = "2017-10-25T07:00:00Z"
  type        = "daily"

  participant {
    id   = opsgenie_escalation.some_escalation.id
    type = "escalation"
  }

  time_restriction {
    type = "time-of-day"

    restriction {
      end_hour   = 22
      end_min    = 0
      start_hour = 10
      start_min  = 0
    }
  }
}

Actual Behavior

Error: Participant type should be one of these: 'User', 'Team'

  on schedules.tf line 13, in resource "opsgenie_schedule_rotation" "Day":
  13: resource "opsgenie_schedule_rotation" "Day" {
@ffahri
Copy link

ffahri commented Nov 19, 2020

Thanks for raising this issue its coming from go-sdk will create issue there also

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

No branches or pull requests

2 participants