AWS WAF Regional Regional Regex Match Set
This page shows how to write Terraform and CloudFormation for AWS WAF Regional Regional Regex Match Set and write them securely.
aws_wafregional_regex_match_set (Terraform)
The Regional Regex Match Set in AWS WAF Regional can be configured in Terraform with the resource name aws_wafregional_regex_match_set
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_wafregional_regex_match_set" "this" {
name = var.name
dynamic "regex_match_tuple" {
for_each = var.regex_match_tuple
content {
resource "aws_wafregional_regex_match_set" "regex_body" {
name = format("%s-body-regex", var.waf_name)
regex_match_tuple {
field_to_match {
type = "BODY"
Parameters
-
id
optional computed - string -
name
required - string -
regex_match_tuple
set block-
regex_pattern_set_id
required - string -
text_transformation
required - string -
field_to_match
list block
-
Explanation in Terraform Registry
Provides a WAF Regional Regex Match Set Resource
AWS::WAFRegional::RegexPatternSet (CloudFormation)
The RegexPatternSet in WAFRegional can be configured in CloudFormation with the resource name AWS::WAFRegional::RegexPatternSet
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
RegexPatternStrings
required - List -
Name
required - String
Explanation in CloudFormation Registry
The
RegexPatternSet
specifies the regular expression (regex) pattern that you want AWS WAF to search for, such asB[a@]dB[o0]t
. You can then configure AWS WAF to reject those requests.Note that you can only create regex pattern sets using a AWS CloudFormation template. To add the regex pattern sets created through AWS CloudFormation to a RegexMatchSet, use the AWS WAF console, API, or command line interface (CLI). For more information, see UpdateRegexMatchSet.
Frequently asked questions
What is AWS WAF Regional Regional Regex Match Set?
AWS WAF Regional Regional Regex Match Set 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 Regex Match Set?
For Terraform, the niveklabs/aws and msfidelis/awswaf-production-automation source code examples are useful. See the Terraform Example section for further details.