I wrote this script for a bit of fun.
It sets ec2 instance Names to the name of the elasticsearch node running on
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:
$ ec2-ssh Lucifer 'service elasticsearch restart'