https://pulumi.com logo
Title
q

quaint-guitar-13446

03/25/2021, 12:24 AM
This was an issue in Terraform that was resolved Dec 2019 https://github.com/hashicorp/terraform-provider-aws/issues/11323
l

little-cartoon-10569

03/25/2021, 12:39 AM
Is it the same issue? Same error, different issue, maybe? The issue you linked says it was resolved in TF AWS provider 2.43.0. The current version of the Pulumi provider is built from version 3.33.0 of the TF AWS provider...
q

quaint-guitar-13446

03/25/2021, 12:40 AM
You might be right
Though it should be supported
l

little-cartoon-10569

03/25/2021, 12:40 AM
2.43.0 of the provider was adopted in release 1.17.0 of the Pulumi provider. So long as you're using something newer, you should be ok...
What version of the aws provider are you using? Could it be very old?
Do you have two condition blocks? That seems to be the requirement.
q

quaint-guitar-13446

03/25/2021, 12:43 AM
Shouldn't be. I recently updated
l

little-cartoon-10569

03/25/2021, 12:44 AM
Can you share the relevant code?
q

quaint-guitar-13446

03/25/2021, 12:44 AM
Sure
listener.addListenerRule(
      `listener-rule-${i}-${pulumi.getStack()}`,
      {
        conditions: [
          {
            hostHeader: {
              values: [appHost],
            },
            pathPattern: {
              values: [pathPattern],
            },
          },
        ],
        actions: [
          {
            type: 'forward',
            targetGroupArn: targetGroup.arn,
          },
        ],
      }
    );
You're probably right there. Two separate conditions
l

little-cartoon-10569

03/25/2021, 12:45 AM
Yea, that's one condition.
q

quaint-guitar-13446

03/25/2021, 12:45 AM
My bad. Thank you 🙂
👍 1