public
Description: A set of extra command line tools for Amazon EC2
Homepage: http://blog.carlmercier.com
Clone URL: git://github.com/cmer/ec2-extra-tools.git
ehaselwanter (author)
Thu Mar 05 10:13:45 -0800 2009
cmer (committer)
Thu Mar 05 15:51:21 -0800 2009
ec2-extra-tools / ec2-identify-instance
100755 6 lines (4 sloc) 0.144 kb
1
2
3
4
5
6
#!/usr/bin/ruby
 
require 'open-uri'
instance_id = open("http://169.254.169.254/latest/meta-data/instance-id") { |u| u.read }
print instance_id