def get(self):
   response = users.ec2_describe_instances()
   images_up = re.findall('\ti-[\d\w]+\t', response)
   opts = {"ids":images_up}
   response = users.ec2_terminate_instances(opts).replace("\n", "<br /><br />")
   self.response.out.write(template.render('index.html',
                                           {'tool': 'Terminate all instances',
                                            'result': response}))
 def get(self):
   opts = {"ids":["i-54EA0A7A"]}
   response = users.ec2_terminate_instances(opts).replace("\n", "<br /><br />")
   self.response.out.write(template.render('index.html',
                                           {'tool': 'EC2 Terminate Instances',
                                            'result': response}))