You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform v0.10.7
Compiled the pagerduty module manually from master to work around bug go version <1.9
Affected Resource(s)
Please list the resources as a list, for example:
pagerduty_schedule
When I remove a layer from a schedule, terraform forces a new resource. Unfortunately, if the schedule is in use in a policy (which is also controlled by terraform), it cannot remove the schedule as it is still in use.
I would expect the escalation policy to remove the schedule, then the old schedule to be removed and a new one to be created and assigned to the policy.
The text was updated successfully, but these errors were encountered:
I'm seeing this same issue. I removed a layer from my schedule, and when I apply the plan, I'm getting an error like:
* pagerduty_schedule.compute_primary (destroy): 1 error(s) occurred:
* pagerduty_schedule.compute_primary: DELETE API call to https://api.pagerduty.com/schedules/P7GK4YV failed 400 Bad Request. Code: 2001, Errors: [Schedule can't be deleted if it's being used by escalation policies], Message: Invalid Input Provided
Version info:
$ terraform version
Terraform v0.11.7
+ provider.pagerduty v1.1.1
Terraform Version
Terraform v0.10.7
Compiled the pagerduty module manually from master to work around bug go version <1.9
Affected Resource(s)
Please list the resources as a list, for example:
When I remove a layer from a schedule, terraform forces a new resource. Unfortunately, if the schedule is in use in a policy (which is also controlled by terraform), it cannot remove the schedule as it is still in use.
I would expect the escalation policy to remove the schedule, then the old schedule to be removed and a new one to be created and assigned to the policy.
The text was updated successfully, but these errors were encountered: