This message was deleted.
s
This message was deleted.
a
I don't see why it wouldn't work. Where do you see the reference to
alb.createListener
? That doesn't look very declarative. Your code kind of matches what I use, but I'm not using crosswalk.
a
if you check the https listener you'll see that I left some question mark because i cannot understand what target group should i set there
a
I think with crosswalk you have to create the target group at the same time, instead of specifying the target group ARN. See https://www.pulumi.com/registry/packages/awsx/api-docs/lb/applicationloadbalancer/#targetgroup Sorry, I've never used crosswalk and it might have some pitfalls that I'm not aware of. Having said that, nothing prevents you from mixing providers together, like awsx and aws. Then you could create the target group using aws and pass it to awsx.
a
thx will try. can you share a working infra implementation for this use case that you use successfully ? just to have a good ref to build around
other than that, here https://www.pulumi.com/docs/clouds/aws/guides/elb/ the doc states using createListener/createTargetGroup methods that are not anymore included in crosswalk library
a
Please note that to use those methods you need an ALB first, it seems
They're methods of the load balancer, not the crosswalk library itself
Copy code
const alb = new awsx.lb.ApplicationLoadBalancer("web-traffic");
const listener = alb.createListener("web-listener", { port: 80 });
Having said that, I can't find a reference to them in the docs. I'm sorry I'm not a crosswalk nor javascript Pulumi user, my knowledge isn't great with them...