2013/12/18: update this, and since the links are dead!
I installed the new cli AWI tools:
$ pip install awscli
Then executed:
$ aws configure AWS Access Key ID [None]: my-key AWS Secret Access Key [None]: my-secret Default region name [None]: us-east-1 Default output format [None]:
This data is stored in ~/.aws/config .
Then I can find instances related to loadbalancer as follows:
$ aws elb describe-load-balancers --load-balancer-name "my-name" { "LoadBalancerDescriptions": [ { "Subnets": [], "CanonicalHostedZoneNameID": "ID", "CanonicalHostedZoneName": "my-name-foo.us-east-1.elb.amazonaws.com", "ListenerDescriptions": [ { "Listener": { "InstancePort": 80, "LoadBalancerPort": 80, "Protocol": "HTTP", "InstanceProtocol": "HTTP" }, "PolicyNames": [] }, { "Listener": { "InstancePort": 80, "SSLCertificateId": "arn:aws:iam::x:server-certificate/x-ssl-prod", "LoadBalancerPort": 443, "Protocol": "HTTPS", "InstanceProtocol": "HTTP" }, "PolicyNames": [ "AWSConsole-SSLNegotiationPolicy-api-production" ] } ], "HealthCheck": { "HealthyThreshold": 10, "Interval": 30, "Target": "HTTP:80/healthy.php", "Timeout": 5, "UnhealthyThreshold": 2 }, "BackendServerDescriptions": [], "Instances": [ { "InstanceId": "i-FIRST-INSTANCEID" }, { "InstanceId": "i-SECOND-INSTANCEID" } ], "DNSName": "my-name-foo.us-east-1.elb.amazonaws.com", "SecurityGroups": [], "Policies": { "LBCookieStickinessPolicies": [], "AppCookieStickinessPolicies": [], "OtherPolicies": [ "AWSConsole-SSLNegotiationPolicy-my-name" ] }, "LoadBalancerName": "my-name", "CreatedTime": "2013-08-05T16:55:22.630Z", "AvailabilityZones": [ "us-east-1d" ], "Scheme": "internet-facing", "SourceSecurityGroup": { "OwnerAlias": "amazon-elb", "GroupName": "amazon-elb-sg" } } ] }
The data is in LoadBalancerDescriptions.Instances .
My loadbalancer is called my-name - this is the name you chose when you created it.
Old answer below!
I am not familiar with the cli tool, but I used the API.
I would check these two queries:
Does the cli tool probably have something like this?
NTN!