You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aws_waf_byte_match_set.secure_magento_urls: [ERROR] Error updating ByteMatchSet: [ERROR] Error updating ByteMatchSet: ValidationException: 4 validation errors detected: Value '' at 'updates.1.member.matchTuple.field.data' failed to satisfy constraint: Member must have length greater than or equal to 1; Value '' at 'updates.2.member.matchTuple.field.data' failed to satisfy constraint: Member must have length greater than or equal to 1; Value '' at 'updates.3.member.matchTuple.field.data' failed to satisfy constraint: Member must have length greater than or equal to 1; Value '' at 'updates.4.member.matchTuple.field.data' failed to satisfy constraint: Member must have length greater than or equal to 1
status code: 400, request id: 1f905ce1-6236-11e7-b001-5f2ac51ee968
Errors due to missing 'data' value. field_to_match 'data' should be optional when using anything but 'HEADER' as the type:
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
resource "aws_waf_byte_match_set" "secure_magento_urls" {
name = "waf-magento-urls"
byte_match_tuples = [
{
field_to_match {
type = "URI"
}
text_transformation = "LOWERCASE"
target_string = "/rss/catalog/review"
positional_constraint = "STARTS_WITH"
},
{
field_to_match {
type = "URI"
}
text_transformation = "LOWERCASE"
target_string = "/index.php/rss/catalog/review"
positional_constraint = "STARTS_WITH"
},
{
field_to_match {
type = "URI"
}
text_transformation = "LOWERCASE"
target_string = "/rss/catalog/notifystock"
positional_constraint = "STARTS_WITH"
},
{
field_to_match {
type = "URI"
}
text_transformation = "LOWERCASE"
target_string = "/index.php/rss/catalog/notifystock"
positional_constraint = "STARTS_WITH"
}
]
}
Expected Behavior
Successful apply.
Actual Behavior
status code: 400, request id: 1f905ce1-6236-11e7-b001-5f2ac51ee968
Errors due to missing 'data' value. field_to_match 'data' should be optional when using anything but 'HEADER' as the type:
https://www.terraform.io/docs/providers/aws/r/waf_byte_match_set.html#data
Confirmed this applies successfully by adding a 'data' value within field_to_match.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
The text was updated successfully, but these errors were encountered: