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
❯ terraform version
Terraform v1.4.6
on darwin_amd64
+ provider registry.terraform.io/thousandeyes/thousandeyes v2.0.6
What did you expect to happen?
When a change is made to a thousandeyes_alert_rule resource associated with one or more tests, the association is expected to remain the same.
What actually happened?
When a change is made to a thousandeyes_alert_rule resource, all tests are disassociated from that alert rule.
Terraform code to reproduce the bug
This is the minimum code required to reproduce the bug:terraform {
required_providers {
thousandeyes={
source ="thousandeyes/thousandeyes"
version =">= 2.0.6"
}
}
}
provider"thousandeyes" {
token="your_token"account_group_id="your_account_group_id"
}
data"thousandeyes_agent""miami" {
agent_name="Miami, FL"
}
resource"thousandeyes_alert_rule""nprod_a2s_alert_major" {
severity="MAJOR"rule_name="NPROD - Network Server Alert Rule - Major"alert_type="End-to-End (Server)"expression="((loss >= 50%) || (probDetail != \"\") || (avgLatency >= 200 ms))"minimum_sources=2rounds_violating_required=3rounds_violating_out_of=4
}
resource"thousandeyes_agent_to_server""agent_to_server_webexapi" {
test_name="NPROD - Webex APIs"interval=300alerts_enabled=trueserver="webexapis.com"protocol="TCP"port=443enabled=truebgp_measurements=trueuse_public_bgp=truemtu_measurements=falseagents {
agent_id=data.thousandeyes_agent.miami.agent_id
}
alert_rules {
rule_id=thousandeyes_alert_rule.nprod_a2s_alert_major.id
}
}
Any additional comments or code?
The provided terraform configuration is for only one alert type, but the same issue happens with any other alert type I tested:
End-to-End (Server)
End-to-End (Agent)
Voice
HTTP Server
Page Load
DNS Trace
DNS Server
BGP
I can provide examples for all the above if needed.
Steps to reproduce the bug
Run terraform apply
Check the Alert Rule in the UI to confirm it is associated with a Test.
Modify the thousandeyes_alert_rule. For example, change the rounds_violating_required value from 3 to 4.
Apply the change: terraform apply
Check the Alert Rule in the UI to confirm it is NOT associated with any Test.
A workaround to get the associations back is to replace the Terraform resource. Running the command below will re-associate the provided alert rule with the test:
What versions are you using?
What did you expect to happen?
When a change is made to a
thousandeyes_alert_rule
resource associated with one or more tests, the association is expected to remain the same.What actually happened?
When a change is made to a
thousandeyes_alert_rule
resource, all tests are disassociated from that alert rule.Terraform code to reproduce the bug
Any additional comments or code?
The provided terraform configuration is for only one alert type, but the same issue happens with any other alert type I tested:
I can provide examples for all the above if needed.
Steps to reproduce the bug
terraform apply
thousandeyes_alert_rule
. For example, change therounds_violating_required
value from3
to4
.terraform apply
A workaround to get the associations back is to replace the Terraform resource. Running the command below will re-associate the provided alert rule with the test:
Sample captures:
The text was updated successfully, but these errors were encountered: