Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

single_query_argument not supported #132

Open
mbsimonovic opened this issue Apr 13, 2024 · 0 comments
Open

single_query_argument not supported #132

mbsimonovic opened this issue Apr 13, 2024 · 0 comments

Comments

@mbsimonovic
Copy link

What is the current behavior?
single_query_argument does not seem to be supported.
For the list of all field_to_match arguments see https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/wafv2_rule_group#field-to-match

                  byte_match_statement = {
                    field_to_match = {
                      single_query_argument = {
                        name = "version"
                      }
                    }
                    positional_constraint = "EXACTLY"
                    search_string         = "latest"
                    type                  = "NONE"
                    priority              = 0
                  }

produces tf plan:

                                      + byte_match_statement {
                                          + positional_constraint = "EXACTLY"
                                          + search_string         = "version"

                                          + field_to_match {
                                                         #### IT'S EMPTY !!
                                            }

                                          + text_transformation {
                                              + priority = 0
                                              + type     = "NONE"
                                            }
                                        }
                                    }

What is the expected behavior?

                                      + byte_match_statement {
                                          + positional_constraint = "EXACTLY"
                                          + search_string         = "version"

                                          + field_to_match {

                   +   single_query_argument  {
                   +     name = "version"
                        }

                                            }

                                          + text_transformation {
                                              + priority = 0
                                              + type     = "NONE"
                                            }
                                        }
                                    }

Software versions?

Happens both with 4.x and 5.x, AWS 5.45, terraform 1.3.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant