aztfm / terraform-azurerm-application-gateway-firewall-policy

Terraform module for Microsoft Azure to manage Application Gateway Firewall Policy resource.
https://registry.terraform.io/modules/aztfm/application-gateway-firewall-policy/azurerm/
Apache License 2.0
0 stars 0 forks source link

Support for custom rules #8

Open gareda opened 3 months ago

gareda commented 3 months ago

Description

Add the ability to configure custom rules for WAF policies.

Potential Terraform Configuration

module "application_gateway_firewall_policy" {
  source              = "aztfm/application-gateway-firewall-policy/azurerm"
  version             = ">=1.1.0"
  ...
  custom_rules = [{
    name      = ""
    priority  = 10
    rule_type = ""
    action    = "Allow"
    match_conditions = [{
      operator           = ""
      negation_condition = false
      match_values       = [""]
      match_variables = [{
        variable_name = "RemoteAddr"
      }]
    }]
  }]
}

References