aws ec2 get-console-output
Gets the console output for the specified instance. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--dry-runChecks whether you have the required permissions for the operation, without actually making the request, and provides an error response.--instance-idThe ID of the instance.--latestWhen enabled, retrieves the latest console output for the instance.