Open mikkiwright opened 3 years ago
Since nobody answered you, i will offer some answers. You cannot use Regex to obtain the Priority values. It will be better for you to set the priority using the customPriority/Priority field, mapped to P1,P2,P3,P4 or P5. See the allowed operations here
But i agree that this should be refactored since it is an incoming filter
This limitation does not make sense. I can do this perfectly fine in the UI.
When I add the block in Terraform, the apply fails.
conditions {
field = "priority"
operation = "matches"
expected_value = "P(1|2|3)"
}
Terraform Version
1.0.3
Affected Resource(s)
Terraform Configuration Files
Debug Output
Plan runs successfully with output below but apply fails with error.
Panic Output
None
Expected Behavior
Terraform apply should allow
matches
operation in filter block for the priority filter, andexpected_value
should be allowed to be set as any value. This is possible to do in the console.Actual Behavior
Error output
Using operation
equals
instead ofmatches
gives a different error:Error: for field priority expected value should be one of P1, P2, P3, P4, P5
In the Opsgenie console this filter field can be set as any value.Steps to Reproduce
terraform apply
Important Factoids
None
References
None