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 apply should run without errors and an alert should be created
Actual Behavior
When running terraform apply it fails with the following message:
Error: error creating Alert Configuration information: POST https://cloud.mongodb.com/api/atlas/v1.0/groups/<redacted>/alertConfigs: 400 (request "Bad Request") The required attribute threshold was not specified.
on main.tf line 158, in resource "mongodbatlas_alert_configuration""restarts_in_last_hour":158:resource"mongodbatlas_alert_configuration""restarts_in_last_hour" {
[terragrunt] 2020/09/1010:34:00 Hit multiple errors:
exit status 1
Additional Context
It is a bit weird, that all other alerts that are configured similarly were applied successfully. So far this has been the only one not working as expected.
The text was updated successfully, but these errors were encountered:
@Jeinhaus Thanks for reporting this. As I could see in the debug logs, when threshold = "0" is passed, this parameter is not passing through the API request. However when this is changed to threshold = "1" this is accepted and is passed to the API.
threshold = "0" debug.log
threshold = "1" debug.log
Hope this will help in troubleshooting.
themantissa
changed the title
"mongodbatlas_alert_configuration" for metric "RESTARTS_IN_LAST_HOUR" fails with "The required attribute threshold was not specified"
mongodbatlas_alert_configuration - metric_threshold.threshold is not being passed when value is zero
Sep 16, 2020
@nikhil-mongo thank you for the debug logs and @Jeinhaus for the report. Seems like a bug when its zero. Sadly we don't have a >= as a work around so we'll add this to our queue.
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform Configuration File
Steps to Reproduce
terraform init
terraform apply
Expected Behavior
terraform apply
should run without errors and an alert should be createdActual Behavior
When running
terraform apply
it fails with the following message:Additional Context
It is a bit weird, that all other alerts that are configured similarly were applied successfully. So far this has been the only one not working as expected.
The text was updated successfully, but these errors were encountered: