def resume(self):
     if self.config['cloud_provider'] == 'aws':
         instances = aws_service.get_all_instances(self.config)
         aws_service.change_ec2_state(instances, 'running', self.log,
                                      self.config)
     elif self.config['cloud_provider'] == 'azure':
         azure_service.change_instance_state(self.config, 'running',
                                             self.log)
 def resume(self):
     instances = aws_service.get_all_instances(self.config)
     aws_service.change_ec2_state(instances, 'running', self.log)
 def stop(self):
     instances = aws_service.get_all_instances(self.config)
     aws_service.change_ec2_state(instances, 'stopped', self.log)