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

Cannot create OR condition inside query strings in listener rule #369

Open
1 task done
MarcelAdamski opened this issue May 13, 2024 · 0 comments
Open
1 task done

Comments

@MarcelAdamski
Copy link

MarcelAdamski commented May 13, 2024

Description

In v8.6.0 there was no such problems. Upgraded to, v9.9.0 and cannot create OR statements inside conditional in listener rules.

  • ✋ I have searched the open/closed issues and my issue is not listed.

Versions

  • Module version [Required]: v9.9.0

  • Terraform version: 1.7.4 (required 1.3)

  • Provider version(s): aws 5.46

Steps to reproduce the behavior:

Code before in v8.6.0 which worked perfectly:

     conditions = [
        {
          query_strings = [
            {
              key   = "somekey1"
              value = "somevalue1"
            }
          ]
        },
        {
          query_strings = [
            {
              key   = "somekey2"
              value = "somevalue2"
            },
            {
              key   = "somekey3"
              value = "somevalue3"
            },
            {
              key   = "somekey4"
              value = "somevalue4"
            },
          ]
        },
      ]

Expected behavior

This above statement in v8.6.0 created two conditional where the second one had inside 3 query strings which had OR between them.
So the statement was somekey1 AND [somekey2 OR somekey3 OR somekey4]

Now tried for couple of hours and cannot create the same condition, trying like that:

          conditions = [
            {
              query_string = {
                key   = "somekey1"
                value = "somevalue1"
              }
            },
            
            {
              query_string = {
                key   = "somekey2"
                value = "somevalue2"
              }
              query_string = {
                key   = "somekey3"
                value = "somevalue3"
              },
              query_string = {
                key   = "somekey4"
                value = "somevalue4"
              }
            }
          ]

But only create one query string in second conditional. This syntax is not working (or any other variants, tried almost everything). Does the module do not support now this option or I'am missing some syntax here? Glad to hear some feedback.

Actual behavior

Not creating specified OR statements inside conditional using query_strings (creating maximum one)

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

No branches or pull requests

1 participant