https://pulumi.com logo
#aws
Title
# aws
b

broad-dog-22463

05/21/2020, 10:25 PM
@high-postman-55219 restarting thread
can you share your code and version of pulumi-aws that you are using?
h

high-postman-55219

05/21/2020, 10:27 PM
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

broad-dog-22463

05/21/2020, 10:28 PM
ok, looking now - one minute
h

high-postman-55219

05/21/2020, 10:29 PM
the rule is created in aws, but pulumi fails
b

broad-dog-22463

05/21/2020, 10:29 PM
and you are using alb_listener?
h

high-postman-55219

05/21/2020, 10:30 PM
new aws.lb.ListenerRule
b

broad-dog-22463

05/21/2020, 10:31 PM
can you paste a sample of your pulumi code?
h

high-postman-55219

05/21/2020, 10:33 PM
b

broad-dog-22463

05/21/2020, 10:35 PM
so the issue is because of 2 conditions
h

high-postman-55219

05/21/2020, 10:35 PM
yes
b

broad-dog-22463

05/21/2020, 10:35 PM
k looking at our sdk right now
h

high-postman-55219

05/21/2020, 10:35 PM
2 host
2 paths fails too
both create the rule in aws, but pulumi fails
b

broad-dog-22463

05/21/2020, 10:37 PM
we 100% allow multiple conditions in our SDK...
h

high-postman-55219

05/21/2020, 10:39 PM
b

broad-dog-22463

05/21/2020, 10:39 PM
I believe you that it fails 🙂 I am just thinking out loud here...
you are using TypeScript right?
h

high-postman-55219

05/21/2020, 10:43 PM
js
b

broad-dog-22463

05/21/2020, 10:43 PM
k
h

high-postman-55219

05/21/2020, 10:43 PM
aws javascript
extract of package-lock.json
b

broad-dog-22463

05/21/2020, 10:46 PM
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

high-postman-55219

05/21/2020, 11:38 PM
ok,