Script to mirror node name to ec2 Name

I wrote this script for a bit of fun.

It sets ec2 instance Names to the name of the elasticsearch node running on
them.

It's come in very handy when debugging system level problems as it makes
nodes much more identifiable in the Amazon console.
Works great with ec2-ssh from instagram, eg to restart an elasticsearch
node by name:
$ ./ec2names.py
$ ec2-ssh Lucifer 'service elasticsearch restart'

B

--