Resource: aws_wafregional_byte_match_set

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

Example Usage

resource "aws_wafregional_byte_match_set" "byte_set" {
  name = "tf_waf_byte_match_set"

  byte_match_tuples {
    text_transformation   = "NONE"
    target_string         = "badrefer1"
    positional_constraint = "CONTAINS"

    field_to_match {
      type = "HEADER"
      data = "referer"
    }
  }
}

Argument Reference

This resource supports the following arguments:

ByteMatchTuples(byte_match_tuples) support the following:

FieldToMatch(field_to_match) support following:

Remarks

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import WAF Regional Byte Match Set using the id. For example:

import {
  to = aws_wafregional_byte_match_set.byte_set
  id = "a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc"
}

Using terraform import, import WAF Regional Byte Match Set using the id. For example:

% terraform import aws_wafregional_byte_match_set.byte_set a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc