-
Notifications
You must be signed in to change notification settings - Fork 212
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 delete team with existing Schedules association(s) #358
Comments
it's limitation on pager duty. Since the schedule is linked to the team, you cannot delete the team. you need to first delete the schedule then the team. maybe you can used |
Why not just disassociate them so that terraform can destroy it. And keep the schedule at the same time. |
This is also an issue for me, I've tried configuring the |
What is funny is that you can create a schedule only if a responder is assign to it. but if you delete the user, the schedule still exists and a "shadow user take it's place". Feels like core design issues IMO. This make terraform a bit more tricky to use. |
@m1n9o @NargiT @edobry An update for fixing this issue was merged on #561 and It has been released in version v2.6.1 of PagerDuty TF Provider, so updating to the new version hopefully You all would be able to gracefully delete Schedules without getting stuck with into this error. Please if You find any further issues related with this error after updating don't hesitate on reopening this Issue ✌🏽 |
@imjaroiswebdev there are still two use cases. one will be solved in #564 and one is when the schedule is the only remaining one in an escalation policy. |
Great I will start to include Team's ownership now in our production version ! |
Terraform Version
0.15.5
Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
The problem is much straightforward. I created a team with escalation policy and services.
I removed the escalation policy and services with terraform apply. After that, when I try to remove the team.
It says cannot delete team with existing schedules association(s). It's quite annoying if we need to disassociate them manually.
Panic Output
Expected Behavior
It should be able to remove the team.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
The text was updated successfully, but these errors were encountered: