Instance / Action / console_output

console_output#

EC2.Instance.console_output(**kwargs)#

Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output includes the last three system event log errors.

For more information, see Instance console output in the Amazon EC2 User Guide.

See also: AWS API Documentation

Request Syntax

response = instance.console_output(
    DryRun=True|False,
    Latest=True|False
)
Parameters:
  • DryRun (boolean) – Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • Latest (boolean) –

    When enabled, retrieves the latest console output for the instance.

    Default: disabled ( false)

Return type:

dict

Returns:

Response Syntax

{
    'InstanceId': 'string',
    'Output': 'string',
    'Timestamp': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • InstanceId (string) –

      The ID of the instance.

    • Output (string) –

      The console output, base64-encoded. If you are using a command line tool, the tool decodes the output for you.

    • Timestamp (datetime) –

      The time at which the output was last updated.