Is there a way to pass in an existing `<http://aws...
# aws
a
Is there a way to pass in an existing
<http://aws.lb|aws.lb>.LoadBalancer
to a new
<http://awsx.lb|awsx.lb>.ApplicationLoadBalancer
? I am using the typescript package currently. I want to take advantage of the features of aws crosswalk, but it's import that I can use an imported resource of an ALB that already exists in my amazon account. For all the other crosswalk resources, I have used the pattern of creating a non crosswalk resource using the
import
option and then passing that in as the argument to create the crosswalk resource. Am I missing something here with the load balancer? As far as I can tell, it will always create a new load balancer and there is no way to pass in an existing one.
To draw a comparison to other resources, when creating a crosswalk cluster, you can pass in an existing aws cluster. If it exists, it will get the cluster and use it, if it doesn't it creates a new cluster. Looking at the source for the load balancer, it seems to always create one no matter what. Cluster Implementation https://github.com/pulumi/pulumi-awsx/blob/6e41506897a3d7bf3985beb8ecdc596638047699/nodejs/awsx/ecs/cluster.ts#L49 Load Balancer Implementation https://github.com/pulumi/pulumi-awsx/blob/6e41506897a3d7bf3985beb8ecdc596638047699/nodejs/awsx/lb/loadBalancer.ts#L42