ec2-ssh is a ssh_config manager for Amazon EC2.
ec2-ssh command adds Host descriptions to ssh_config (~/.ssh/config default). 'Name' tag of instances are used as Host descriptions and the Private-Dns are used for ssh.
$ git clone https://github.com/totango/ec2-ssh.git
export AWS_ACCESS_KEY_ID={Replace with your Amazon Access Key}
export AWS_SECRET_ACCESS_KEY={Replace with your amazon Secret Kek}
(!) In case you don't have an Access_Key,Secret_Key for your user ask from your Aws Admin to provide you one.
$ source .bashrc/.zshrc/.bash_profile
$ python setup.py install
sh update_hosts.sh
Now try ssh to one of the hosts by name:
$ ssh Name-Of-Host
#Notice ec2-ssh command updates your .ssh/config file default. You should make a backup of it.