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
When we use this setting in Terraform to create an alert, it works and sets the correct value for alert_delay as expected. But, if we try to update using Terraform, it sets to default value of 1 instead of a specific value.
If I perform a GET API call, we can see the setting -
"alertDelay": {
"active": 30
},
I'll update this value from 30 -> 50 and Terraform plan -
Terraform will perform the following actions:
# elasticstack_kibana_alerting_rule.consecutive_matches will be updated in-place
~ resource "elasticstack_kibana_alerting_rule" "consecutive_matches" {
~ alert_delay = 30 -> 50
id = "default/xxxxxxxxx"
name = "test-custom-interval-tf"
tags = []
# (10 unchanged attributes hidden)
# (1 unchanged block hidden)
}
The plan shows the upcoming changes. But upon Terraform apply, if I look at the debug logs, the PUT API call that terraform performs for updating the resource, does not have this value set. There is no field in the API call. Hence it defaults to 1.
Trying from API call - PUT , setting -
"alertDelay": {
"active": 50
},
I get the following error
{
"statusCode": 400,
"error": "Bad Request",
"message": "[request body.alertDelay]: definition for this key is missing"
}
So, from API call as well, if we remove this setting, it will be same as the PUT call Terraform performs. As there is no alert_delay setting, the alert is updated to default value of 1.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
Terraform Version : 1.6.6
Provider version : v0.11.7
Elasticsearch Version : 8.13.2
Let me know if more information is required from my die.
The text was updated successfully, but these errors were encountered:
Describe the bug
In Kibana alerting UI
Rules -> Advanced options -> alert ____ consecutive matches
this is same as
alert_delay
field in Terraform configuration: https://registry.terraform.io/providers/elastic/elasticstack/latest/docs/resources/kibana_alerting_rule#alert_delayWhen we use this setting in Terraform to create an alert, it works and sets the correct value for
alert_delay
as expected. But, if we try to update using Terraform, it sets to default value of 1 instead of a specific value.To Reproduce
Steps to reproduce the behavior:
GET API call
If I perform a GET API call, we can see the setting -
I'll update this value from 30 -> 50 and Terraform plan -
Terraform will perform the following actions:
The plan shows the upcoming changes. But upon Terraform apply, if I look at the debug logs, the PUT API call that terraform performs for updating the resource, does not have this value set. There is no field in the API call. Hence it defaults to
1
.Trying from API call - PUT , setting -
I get the following error
So, from API call as well, if we remove this setting, it will be same as the PUT call Terraform performs. As there is no
alert_delay
setting, the alert is updated to default value of 1.Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
Let me know if more information is required from my die.
The text was updated successfully, but these errors were encountered: