class_docstr: AWS Driver
class_docstr_tok: ["AWS","Driver"]
code: def console_log(self, instance_id):
      ec2 = boto3.client("ec2", **self.creds())
      try:
          out = ec2.get_console_output(InstanceId=instance_id)
          return out.get("Output", "")
      except ClientError as err:
          return "error: cannot get logs for {}:\n{}".format(
              instance_id, err
          )
  
file_path: clearml/clearml/automation/aws_driver.py
imports: import base64
  import attr
  from attr.validators import instance_of
  from ..None import Task
  from ..utilities.pyhocon import ConfigFactory, ConfigTree
  from .auto_scaler import CloudDriver
  from .cloud_driver import parse_tags
label_desc: Use image node_id 9 for calling the AWSDriver obj's underlying member method code with example usage: obj.console_log(instance_id) and returns: out, str