console_outputs
Creates, updates, deletes, gets or lists a console_outputs resource.
Overview
| Name | console_outputs |
| Type | Resource |
| Id | aws.ec2.console_outputs |
Fields
The following fields are returned by SELECT queries:
- get_console_output
| Name | Datatype | Description |
|---|---|---|
instance_id | 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 | string | The time at which the output was last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_console_output | select | InstanceId, region | Latest, DryRun | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
InstanceId | string | The ID of the instance. |
region | string | AWS region (default: us-east-1) |
DryRun | boolean | Checks 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. |
Latest | boolean | When enabled, retrieves the latest console output for the instance. Default: disabled (false) |
SELECT examples
- get_console_output
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 }}'
;