Skip to main content

console_outputs

Creates, updates, deletes, gets or lists a console_outputs resource.

Overview

Nameconsole_outputs
TypeResource
Idaws.ec2.console_outputs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
instance_idstringThe ID of the instance.
outputstringThe console output, base64-encoded. If you are using a command line tool, the tool decodes the output for you.
timestampstringThe time at which the output was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_console_outputselectInstanceId, regionLatest, DryRunGets 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
InstanceIdstringThe ID of the instance.
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks whether you have the required permissions for the operation, 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.
LatestbooleanWhen enabled, retrieves the latest console output for the instance. Default: disabled (false)

SELECT examples

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.

SELECT
instance_id,
output,
timestamp
FROM aws.ec2.console_outputs
WHERE InstanceId = '{{ InstanceId }}' -- required
AND region = '{{ region }}' -- required
AND Latest = '{{ Latest }}'
AND DryRun = '{{ DryRun }}'
;