stackit_observability_instance_alert_config missing setting and unknown default values
Description
Hi, I'm currently in setting up observability_instance_alert_config (Resource) and discovered a missing setting. In the API-Docs routes_create there is the boolean continue mentioned. I created some routes and checked them with Bruno API client and got "continue": false as output. This setting /behaviour is missing in the terraform provider and docs. There are also some information you miss if you don't read the API docs as well.
Steps to reproduce
locals {
alert_config = {
route = {
receiver = "EmailStackit"
repeat_interval = "1m"
routes = [
{
receiver = "EmailStackit"
repeat_interval = "1m"
}
}
]
}
receivers = [
{
name = "EmailStackit"
email_configs = [
{
to = "[email protected]"
}
]
}
}
]
}
]
}
}
- Run
terraform applywith this local.alert_config forresource "stackit_observability_instance" - Run GET
https://api.argus.eu01.stackit.cloud/v1/projects/{{projectId}}/instances/{{instanceId}}/alertconfigs/routes/{{receiver}}in API Client.
Actual behavior
I can't change the boolean continue even if I write it in my terraform code.
There is also not mentioned what other default values will be set when apply code. This is also from my GET request:
"groupWait": "30s", "groupInterval": "5m",
These params are documented as optional and only the 5m of "groupInterval" can be read in the docs. But only as hint that ~5m is a normal behaviour. In API docs this is better explained.
Expected behavior
Give us the same options as described in the API docs. Also please make sure that the hints and default values are documented in terraform docs as well.
Environment
- OS: WSL Ubuntu Distro
- Terraform version:
v1.12.2 - Version of the STACKIT Terraform provider:
v0.58.2
Also discovered that fields match and match_regex are deprycated. There is already a solution -> PR#915
Hi @haeussermanp, thank you for reporting this issue. We will have a look at this.
This PR is on hold until https://jira.schwarz/browse/STACKITOBS-562 is resolved. Until then the acceptance tests will fail.