When getting an AWS LoadBalancer created by a helm...
# general
b
When getting an AWS LoadBalancer created by a helm chart all I have found is the following: https://www.pulumi.com/docs/reference/pkg/kubernetes/core/v1/service/#loadbalanceringress But I am attempting to get the ARN of the LoadBalancer and not the hostname or ip :S So I tried to do the following:
Copy code
const currentLoadBalancer = pulumi.all([service.status.loadBalancer.ingress[0].hostname]).apply(([hostname]) => {
    return aws.lb.getLoadBalancer({
        name: hostname.split("-")[0] // Get the name part from the hostname (before the first hyphen)
    });
});
but hostname is undefined 😞 Is there a better way to find a load balancer created from a helm chart?
the spec.type of the service is ofcourse LoadBalancer When getting the service information via Kubectl I see the hostname
FYI: the LoadBalancer is a Network Loadbalancer ALSO FYI: The chart is in a namespace