Data Source: aws_waf_rule

aws_waf_subscribed_rule_group retrieves information about a Managed WAF Rule Group from AWS Marketplace (needs to be subscribed to first).

Example Usage

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

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

resource "aws_waf_web_acl" "acl" {
  # ...

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

  rules {
    priority = 2
    rule_id  = data.aws_waf_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: