Skip to content

Instantly share code, notes, and snippets.

View mndoci's full-sized avatar

Deepak Singh mndoci

View GitHub Profile
@mndoci
mndoci / aws_app.rb
Created February 7, 2013 17:22 — forked from yoppi/aws_app.rb
require 'aws-sdk'
require 'yaml'
tag_name = ARGV.shift
tag_values = ARGV
AWS.config(YAML.load_file('config.yml'))
p AWS::EC2.new.instances.tagged(tag_name).tagged_values(tag_values).map {|instance|
instance.public_dns_name
}.join(" ")