Show Running Instances on AWS including key/tag pairs

import boto
import json, ast

ec2 = boto.connect_ec2()
reservations = ec2.get_all_reservations(
    filters={'instance-state-name': 'running'})
for reservation in reservations:
    for instance in reservation.instances:
        print + ', '+ instance.instance_type + ', ' + str(ast.literal_eval(json.dumps(instance.tags)) )


  1. Nice blog. Thank you for sharing. The information you shared is very effective for learners I have got some important suggestions from it. erp providers in chennai.

  2. The best thing is that your blog really informative thanks for your great information!
    erp in chennai

  3. I found a lot of interesting information here. A really good post
    office 2011 mac download deutsch


Post a Comment

Popular posts from this blog

ActiveMQ, easy to use open source message oriented middleware (MOM)

Basic Send Message to MQ with Java and IBM MQ JMS

Apache Apollo