Open brianbuda opened 1 year ago
delete schedule is a real mess when they get mixed with Teams.
this is what I get failed 400 Bad Request. Code: 6006, Errors: [Cannot delete team with existing Schedules association(s)], Message: Team has existing associations
why cannot we detroy a team and keep the schedule ? The amount of constraint in pager duty is insane and does not allow for propre gitops workflow. Instead the api encourage using the web version and do click click click billions of time.
Please make it work at scale !
Terraform Version
v1.4.2
Affected Resource(s)
Terraform Configuration Files
Debug Output
Please provider a link to a GitHub Gist containing the complete debug output: https://gist.github.com/brianbuda/726089dd4f11b428ab33d258a0afca75
Panic Output
N/A
Expected Behavior
I can run
terraform plan
andterraform apply
to create the resources successfully. When I runterraform destroy
, the schedule saysStill destroying
before eventually timing out. The error that's posted isError: timeout while waiting for state to become 'success' (timeout: 10s)
Actual Behavior
When I run the
terraform destroy
, the pagerduty schedule gets deleted.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan
terraform apply
terraform destroy
Important Factoids
N/A
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example: