Data Source: aws_wafregional_rule

aws_wafregional_subscribed_rule_group retrieves information about a Managed WAF Rule Group from AWS Marketplace for use in WAF Regional (needs to be subscribed to first).

Example Usage

data "aws_wafregional_subscribed_rule_group" "by_name" {
  name = "F5 Bot Detection Signatures For AWS WAF"
}

data "aws_wafregional_subscribed_rule_group" "by_metric_name" {
  metric_name = "F5BotDetectionSignatures"
}

resource "aws_wafregional_web_acl" "acl" {
  # ...

  rules {
    priority = 1
    rule_id  = data.aws_wafregional_subscribed_rule_group.by_name.id
    type     = "GROUP"
  }

  rules {
    priority = 2
    rule_id  = data.aws_wafregional_subscribed_rule_group.by_metric_name.id
    type     = "GROUP"
  }
}

Argument Reference

This data source supports the following arguments: (at least one needs to be specified)

Attribute Reference

This data source exports the following attributes in addition to the arguments above: