I am currently working on deploying Azure Web Application Firewall (WAF) custom rules using Terraform. How can I define the following regex operator in the .tf format in that case?
This was exported from Azure WAF custom rules.
“matchConditions”: [
{
“matchVariables”: [
{
“variableName”: “RequestUri”
}
],
“operator”: “Regex”,
“negationConditon”: false,
“matchValues”: [
“/user/[A-Za-z]+/api”,
“/user/[A-Za-z]+/lab”,
The following field should be filled out in the terraform file but how?
match_conditions {
match_variables {
variable_name = “RequestUri”
}
operator = **"Regex"**
negation_condition = false
match_values = [
"",
]