CmdID

CmdID / aws / aws ec2

aws ec2 get-console-screenshot

Retrieve a JPG-format screenshot of a running instance to help with troubleshooting. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To retrieve a screenshot of a running instance

The following get-console-screenshot example retrieves a screenshot of the specified instance in .jpg format. The screenshot is returned as a Base64-encoded string.

aws ec2 get-console-screenshot --instance-id i-1234567890abcdef0Identify
--instance-idThe ID of the instance.
Its output
{
    "ImageData": "997987/8kgj49ikjhewkwwe0008084EXAMPLE",
    "InstanceId": "i-1234567890abcdef0"
}

For more information, see Troubleshoot an unreachable Amazon EC2 instance in the Amazon EC2 User Guide.

Options

3 in the AWS CLI reference
--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.
--wake-upWhen set to true, acts as keystroke input and wakes up an instance that's in standby or "sleep" mode.