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