Is there a way to automatically determine what the load balancer, if any, of a given EC2 instance is? I.e., have it ask "who is my LB and what is its service IP?". I was thinking of the instance metadata service but the LB "in front" of the instance does not seem to be listed there.
The reason for this is that I want to set ELB address (or DNS name) as a Chef node attribute to be automatically queried by client services that need to know this external IP.