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
If something has changed in an alert condition, either in Terraform or if someone has altered the alert in the web interface, the output of a plan will look like this:
By just having a quick look at this output, it's very hard to tell which settings that have changed. (It's the summary_function).
The problem here is that the condition have got a new id, which is causing this behavior.
The strange thing however is that if I then change the summary_function in the GUI, Terraform will detect that change:
emil@DvorakWork: ~/git/ops/sre-metrocard/estate/threatmonitor/terraform-templates/appoptics $> terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
appoptics_alert.sqs_age_of_oldest_message: Refreshing state... (ID: 61327598)
appoptics_alert.sqs_incorrect_format: Refreshing state... (ID: 61161139)
------------------------------------------------------------------------
No changes. Infrastructure is up-to-date.
So I guess it would be possible to get a nicer output from a plan.
Expected result
Terraform will perform the following actions:
~ module.staging-goalert-processingEvent.appoptics_alert.sqs_age_of_oldest_message
condition.1259187324.summary_function: "average" => "sum"
Plan: 0 to add, 1 to change, 0 to destroy.
The text was updated successfully, but these errors were encountered:
Thanks for the details. Let me follow up with the AO team to see if conditions can be modified in place or if doing so creates a whole new condition object within the alert.
@petercable do you know off-hand if we change an attribute in an alert condition, if we have to create a whole new condition or are we able to modify the existing condition? In other words, will changing a condition create a new condition ID?
If something has changed in an alert condition, either in Terraform or if someone has altered the alert in the web interface, the output of a plan will look like this:
By just having a quick look at this output, it's very hard to tell which settings that have changed. (It's the
summary_function
).The problem here is that the condition have got a new id, which is causing this behavior.
The strange thing however is that if I then change the summary_function in the GUI, Terraform will detect that change:
So I guess it would be possible to get a nicer output from a plan.
Expected result
The text was updated successfully, but these errors were encountered: