AWS WAF Regional Regional Rule Group

This page shows how to write Terraform and CloudFormation for AWS WAF Regional Regional Rule Group and write them securely.

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (aws_wafregional_rule_group)

Provides a WAF Regional Rule Group Resource

Parameters

Example Usage (from GitHub)

github-iconniveklabs/aws
resource "aws_wafregional_rule_group" "this" {
  metric_name = var.metric_name
  name        = var.name
  tags        = var.tags

  dynamic "activated_rule" {

CloudFormation Example (AWS::WAFRegional::Rule)

Note This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide. For the latest version of AWS WAF , use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use. A combination of ByteMatchSet, IPSet, and/or SqlInjectionMatchSet objects that identify the web requests that you want to allow, block, or count. For example, you might create a Rule that includes the following predicates:+ An IPSet that causes AWS WAF to search for web requests that originate from the IP address 192.0.2.44 + A ByteMatchSet that causes AWS WAF to search for web requests for which the value of the User-Agent header is BadBot.

To match the settings in this Rule, a request must originate from 192.0.2.44 AND include a User-Agent header for which the value is BadBot.

Parameters

Frequently asked questions

What is AWS WAF Regional Regional Rule Group?

AWS WAF Regional Regional Rule Group is a resource for WAF Regional of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS WAF Regional Regional Rule Group?

For Terraform, the niveklabs/aws source code example is useful. See the Terraform Example section for further details.