terraform-aws-alb
terraform-aws-alb copied to clipboard
Cannot create OR condition inside query strings in listener rule
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.
- [x] β 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)