<@U011THZCF5L> restarting thread
# aws
b
@high-postman-55219 restarting thread
can you share your code and version of pulumi-aws that you are using?
h
hi, i am rewriting some stacks from terraform to pulumi, but get this error when create a alb listener rule with 2 domains:
panic: fatal: A failure has occurred: Unexpected multiple elements in array with MaxItems=1 goroutine 826 [running]: github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...) /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.1.1-0.20200508232528-aa313aecf8a0/go/common/util/contract/failfast.go:23 github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Failf(0x5e065ea, 0x35, 0x0, 0x0, 0x0) /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.1.1-0.20200508232528-aa313aecf8a0/go/common/util/contract/fail.go:30 +0x181 github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.MakeTerraformOutput.func1(0x4a12c80, 0xc000f6df00, 0xc00093c8c0, 0x0, 0xc000c9c990, 0x100, 0x6, 0xc0010f9726) /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.3.1/pkg/tfbridge/schema.go:695 +0x51f github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.MakeTerraformOutput(0x4a12c80, 0xc000f6df00, 0xc00093c8c0, 0x0, 0xc000c9c990, 0xc0010f0100, 0x6, 0xc00093c8c0) /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.3.1/pkg/tfbridge/schema.go:723 +0x7d github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.MakeTerraformOutputs(0xc00087ebe0, 0xc00091aa80, 0x0, 0xc000c9c990, 0xc000870100, 0xc000f6dda0) /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.3.1/pkg/tfbridge/schema.go:588 +0x176
pulumi version v2.1.0
"@pulumi/aws": "2.5.0"
b
ok, looking now - one minute
h
the rule is created in aws, but pulumi fails
b
and you are using alb_listener?
h
new aws.lb.ListenerRule
b
can you paste a sample of your pulumi code?
h
b
so the issue is because of 2 conditions
h
yes
b
k looking at our sdk right now
h
2 host
2 paths fails too
both create the rule in aws, but pulumi fails
b
we 100% allow multiple conditions in our SDK...
h
b
I believe you that it fails 🙂 I am just thinking out loud here...
you are using TypeScript right?
h
js
b
k
h
aws javascript
extract of package-lock.json
b
can you open an issue in pulumi-aws repo and I can look into this? I am trying to write some code to recreate it
I'm not 100% sure that this is down to the ListenerRule - it might be something else in your application - I can see that our schema accepts what you are trying to do here
@billowy-army-68599 if you can check the issue report when it's open, that would be useful 🙂
👍 1
just make sure we have enough to try and repo etc
h
ok,