Created
September 18, 2015 06:49
-
-
Save onewheelskyward/b3f955710671ba403a7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ec2 = get_ec2(settings.aws_region, settings.aws_access_key, settings.aws_secret) | |
instances = ec2.describe_instances().data | |
instances.reservations.each do |reservation| | |
reservation.instances.each do |instance| | |
puts instance.instance_id | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment