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
Please list the steps required to reproduce the issue, for example:
terraform plan
Expected Behavior
It should show me the plan that would create that nrql alert condition.
Actual Behavior
Error: expected term.0.duration to be one of [1 2 3 4 5 10 15 30 60 120], got 25
Other Details
The New Relic UI lets you type in a number, not choose from a dropdown, so we already have alerts that work well that are configured to 25 minutes. So as I try to get them tracked in terraform, it means I'll have to change the alerts. Ideally, it would just validate on that the number is in the range [1-120].
Importing an alert that is configured to 25 minutes in the UI works, and the state shows 25 minutes, but I can't do terraform plan because that blows up.
Terraform Version
Terraform v0.12.7
Affected Resource(s)
newrelic_nrql_alert_condition
Terraform Configuration Files
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan
Expected Behavior
It should show me the plan that would create that nrql alert condition.
Actual Behavior
Error: expected term.0.duration to be one of [1 2 3 4 5 10 15 30 60 120], got 25
Other Details
The New Relic UI lets you type in a number, not choose from a dropdown, so we already have alerts that work well that are configured to 25 minutes. So as I try to get them tracked in terraform, it means I'll have to change the alerts. Ideally, it would just validate on that the number is in the range [1-120].
Importing an alert that is configured to 25 minutes in the UI works, and the state shows 25 minutes, but I can't do
terraform plan
because that blows up.References
Pretty sure this is the line of code:
https://github.com/terraform-providers/terraform-provider-newrelic/blob/8aae17feff1d5cd193adbfba04459a003aeed571/newrelic/resource_newrelic_nrql_alert_condition.go#L78
The text was updated successfully, but these errors were encountered: