Quick way to tag the name of the instance so that it shows up on aws console
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
.gitignore
Gemfile
LICENSE
README.md
Rakefile
ec2_name.gemspec

README.md

Ec2Name

Quick way to tag the name of the instance so that it shows up on aws console.

Setup

gem install ec2_name

Set up a ~/.br-cloud.yml that holds the aws credentials. File should look like this:

$ cat ~/.br-cloud.yml
--- 
:aws_access_key_id: XXXX
:aws_secret_access_key: XXXXXXXXXXXXXXXXXXXX
$ 

Usage

If the script is being on an ec2 instance.

ec2_name [NAME]

If you are running it locally and want to test it.

INSTANCE_ID=i-XXXX ec2_name [NAME]