Hi! Is anyone out there building an Elastic Beans...
# general
b
Hi! Is anyone out there building an Elastic Beanstalk stack with a Network Load Balancer? Is there away to get the load balancer that is automatically created via Elastic Beanstalk to be managed by Pulumi? Ultimately, what I need to do is to pass the load balancer URN to a VPCLink, but I don’t actually have the auto-created load balancer URN at runtime.
b
which Elastic Beanstalk resource are you using?
b
@pulumi/aws/elasticbeanstalk
Environment
I see that there is a .loadBalancers call, but unfortunately it just gives an Output<string[]> and I need the underlying string. Once I get that string, I can retrieve the resource to be managed by Pulumi, then ultimately get the URN to pass to the VPCLink
b
So you can't do something like
export const lb = mybeanstalkenv.loadbalancers[0];
does that not work for you?
b
the payload of env.loadbalancers is an Output<string[]> so the underlying object is a string[], but the docs say that is not available until the program finishes