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).
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"
}
}
This data source supports the following arguments: (at least one needs to be specified)
name
- (Optional) Name of the WAF rule group.metric_name
- (Optional) Name of the WAF rule group.This data source exports the following attributes in addition to the arguments above:
id
- ID of the WAF rule group.