-
Notifications
You must be signed in to change notification settings - Fork 26
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]: default alert is set to null with each apply even after applying change #165
Comments
Hey @Sraza11, thanks for reporting. Can you confirm that this happens in 2.0.8 only but not in 2.0.5? |
@Sraza11 after looking a bit more into this, it looks like this was introduced by the fix in #151. However, we can't do much about it at this point, since it's the way Terraform works as this is a resource created outside of Terraform - and in this case, since these are default Alert Rules we don't want to have them managed from Terraform. Also, there's a super easy workaround for this, which is to simply add the default alert_rule id to the test:
Is this an acceptable solution for you? |
yes, this only happens with version > 2.0.5 |
that is not going to work for me since I have many hundreds of tests that are defined without alert rule and default alert takes over. if there is no way around I suppose adding an alert rule to each test will be one way to fix this issue. this was not happening until version 2.0.5 |
Yeah, like I said this happens because of #151 which fixes the fact that default alert rules were not showing up on the ids. And after 2.0.5 the behavior was corrected. Now, the fact that a default alert rule is assigned to a test that has none when defined, I guess it should be dealt in one of 3 ways:
Sorry if the response is not what you wanted, but in this case it does seem that we are battling a bit with the way Terraform works. |
no worries, I can work on this as long as it is a feature and not a bug. |
What versions are you using?
2.0.8
What did you expect to happen?
once I apply a resource it should NOT show that an alert is getting set from a value to null
What actually happened?
once you apply the following code and your run terraform apply or plan you will see that alert is getting set from default to null.
terraform plan
--- Actual resource
Terraform code to reproduce the bug
Any additional comments or code?
without fixing this issue I can not move from 2.0.5 to 2.0.8 version. and I need the functionality of 2.0.8 version
Steps to reproduce the bug
apply the resource and re run the plan you will see the bug
The text was updated successfully, but these errors were encountered: