-
Notifications
You must be signed in to change notification settings - Fork 393
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
[bug] Deleting monitors that are part of an SLO fails #439
Comments
Datadog API explicitly supports the |
I opened a PR on the go client: zorkian/go-datadog-api#311 |
Hey @Towerthousand Thanks for the report and the pull request to the go client. Would you be interested in working on adding this to the terraform provider? @bkabrda updated the vendored go client in this provider that includes your change - https://github.com/terraform-providers/terraform-provider-datadog/pull/447/files |
Hey! adding a PR :) |
fixed in #535 |
Hey!
Declaring a monitor and using it in a declared SLO and then removing the monitor (also removing it from the SLO in the same apply, of course) fails with an API error. There should be a check to remove it from all SLOs first or to remove it from the SLO automatically on deletion.
Happy to open a PR if pointed in the right direction. Thanks!
Terraform Version
Affected Resource(s)
datadog_monitor
datadog_service_level_objective
Terraform Configuration Files
Version 1:
Version 2:
Debug Output
Expected Behavior
Apply runs without errors
Actual Behavior
Apply errored with a 401, monitors and SLO untouched.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
with V1terraform apply
with V2The text was updated successfully, but these errors were encountered: