ReleaseEngineering/How To/Resolve AWS names
< ReleaseEngineering | How To
- login to cruncher (using LDAP credentials):
- switch to buildduty
sudo su - buildduty
- set up environment
source ~/aws/aws-ve/bin/activate cd ~/aws/cloud-tools/aws
- query AWS database. last parameter is a regexp, use "." (dot) to get all slaves
python ec22ip.py -k secrets/aws-secrets.json -r us-west-1 bld-linux64-ec2-076 '(bld|try)-linux64-ec2-03.*'
- You may want to use different regions (us-east-1, us-west-1 or us-west-2)
- This hasn't been updated since Nov 2013 because the parameters in ec22ip.py no longer include -k
See also hourly updated /etc/hosts style dump: http://cruncher.build.mozilla.org/~buildduty/hosts
Find IP of any spot instance
(updated on 03-22-2015)
HOST=foo ssh email@example.com "/builds/aws_manager/bin/python /builds/aws_manager/cloud-tools/scripts/aws_manage_instances.py status $HOST" | grep "\(IP\|Found\)"