trussworks / terraform-aws-wafv2

Creates a WAF using AWS WAFv2 and AWS Managed Rule Sets
https://registry.terraform.io/modules/trussworks/wafv2
Apache License 2.0
103 stars 58 forks source link

add the optional version variable to the managed rules type #114

Closed sheenamt closed 1 year ago

sheenamt commented 1 year ago

Changes proposed in this pull request:

This update allows the option to specify which version of the Managed Rules to use in the Web ACL. If nothing is specified, the default rule set will be used.

Example usage:

module "wafv2" {
source  = "trussworks/wafv2/aws"

managed_rules = [
    { "name" : "AWSManagedRulesCommonRuleSet",
      "override_action" : "count",
      "priority" : 10,
      "rule_action_override" : [],
      "vendor_name" : "AWS",
      "version" : "Version_2.0"
    }
  ]
rpdelaney commented 1 year ago

optional is magic

rpdelaney commented 1 year ago

Shipped in 2.9.0!