Another quick post.
What feels like a lifetime ago, I wrote a post about finding
ec2 instances by name. I honestly use that script just about every day, mostly for automatically finding instances to SSH to (a la SSH config tricks). But there are a few other quick things I’ve done with it:
ec2-script- Run a script on all instances of a given name
ec2-disk- A specialization of
ec2-scriptto check main disk usage
terminate- A script that I use with
ec2to terminate instances from the command line
ec2-cycle- Slow cycle a given set of
ec2instances by terminating so many per minute
All of which are included in my dotfiles.