AWS WAF Regional Regional Byte Match Set

This page shows how to write Terraform and CloudFormation for AWS WAF Regional Regional Byte Match Set and write them securely.

aws_wafregional_byte_match_set (Terraform)

The Regional Byte Match Set in AWS WAF Regional can be configured in Terraform with the resource name aws_wafregional_byte_match_set. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

waf_condition_string_match.tf#L6
resource "aws_wafregional_byte_match_set" "match_auth_tokens" {
  name = "match-auth-tokens"

  byte_match_tuples {
    text_transformation   = "URL_DECODE"
    target_string         = ".TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ"
waf_condition_string_match.tf#L6
resource "aws_wafregional_byte_match_set" "match_auth_tokens" {
  name = "match-auth-tokens"

  byte_match_tuples {
    text_transformation   = "URL_DECODE"
    target_string         = ".TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ"

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Provides a WAF Regional Byte Match Set Resource for use with Application Load Balancer.

AWS::WAFRegional::ByteMatchSet (CloudFormation)

The ByteMatchSet in WAFRegional can be configured in CloudFormation with the resource name AWS::WAFRegional::ByteMatchSet. The following sections describe 10 examples of how to use the resource and its parameters.

Example Usage from GitHub

csye6225-cf-application-waf-temp.yml#L59
    Type: AWS::WAFRegional::ByteMatchSet
    Properties:
      Name: !Sub '${AWS::StackName}-match-auth-tokens'
      ByteMatchTuples:
        - FieldToMatch:
            Type: HEADER
csye6225-cf-application-waf-temp.yml#L59
    Type: AWS::WAFRegional::ByteMatchSet
    Properties:
      Name: !Sub '${AWS::StackName}-match-auth-tokens'
      ByteMatchTuples:
        - FieldToMatch:
            Type: HEADER
csye6225-cf-application-waf-temp.yml#L59
    Type: AWS::WAFRegional::ByteMatchSet
    Properties:
      Name: !Sub '${AWS::StackName}-match-auth-tokens'
      ByteMatchTuples:
        - FieldToMatch:
            Type: HEADER
csye6225-cf-WAF.yml#L255
    Type: AWS::WAFRegional::ByteMatchSet
    Condition: isRegional
    Properties:
      Name: !Join ['-', [!Ref stackPrefix, 'match-auth-tokens']]
      ByteMatchTuples:
        - FieldToMatch:
csye6225-cf-WAF.yml#L255
    Type: AWS::WAFRegional::ByteMatchSet
    Condition: isRegional
    Properties:
      Name: !Join ['-', [!Ref stackPrefix, 'match-auth-tokens']]
      ByteMatchTuples:
        - FieldToMatch:
csye6225-firewall.json#L75
            "Type":"AWS::WAFRegional::ByteMatchSet",
            "Properties":{
                "Name":"match-auth-tokens",
                "ByteMatchTuples":[
                    {
                        "FieldToMatch":{
csye6225-firewall.json#L75
            "Type":"AWS::WAFRegional::ByteMatchSet",
            "Properties":{
                "Name":"match-auth-tokens",
                "ByteMatchTuples":[
                    {
                        "FieldToMatch":{
csye6225-firewall.json#L75
            "Type":"AWS::WAFRegional::ByteMatchSet",
            "Properties":{
                "Name":"match-auth-tokens",
                "ByteMatchTuples":[
                    {
                        "FieldToMatch":{
csye6225-firewall.json#L75
            "Type":"AWS::WAFRegional::ByteMatchSet",
            "Properties":{
                "Name":"match-auth-tokens",
                "ByteMatchTuples":[
                    {
                        "FieldToMatch":{
csye6225-firewall.json#L75
            "Type":"AWS::WAFRegional::ByteMatchSet",
            "Properties":{
                "Name":"match-auth-tokens",
                "ByteMatchTuples":[
                    {
                        "FieldToMatch":{

Parameters

Explanation in CloudFormation Registry

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. The AWS::WAFRegional::ByteMatchSet resource creates an AWS WAF ByteMatchSet that identifies a part of a web request that you want to inspect.

Frequently asked questions

What is AWS WAF Regional Regional Byte Match Set?

AWS WAF Regional Regional Byte 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 Byte Match Set?

For Terraform, the dwp/dataworks-metrics-infrastructure and dwp/aws-analytical-env source code examples are useful. See the Terraform Example section for further details.

For CloudFormation, the gandhi-mansi/csye6225-su19-ccwebapp, cyrilsebastian1811/csye6225-webapp and shubh1646/CSYE6225-ccwebapp source code examples are useful. See the CloudFormation Example section for further details.