Script to mirror node name to ec2 Name

(barnybug-2) #1

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'



(system) #2