Virtual Screen for AWS EC2

0

Hello, My company developed a python script which, when run on local machine, may take certain screen shot depending on the operating condition. Now, we want to migrat it onto AWS EC2 instance ( and launch it via task scheduler ) . Because there is NO physical display or monitor associate with the instance (when launch the program while the instance is disconnected from the local machine ) , the program failed for not finding a monitor.

Is there a solution for this situation ? May be there is some way to REDIRECT the displayed information onto certain memory space and "taking a screenshot" simply means "to copy that memory"? In other word, is there such a "Vritual DISPLAY" or "Virtual Monitor" mechanism exist ?

Thanks for replying in advance.

Larry Chen

asked 2 years ago725 views
1 Answer
1

Can the script be edited to be more EC2 specific? The CLI and SDK both have the ability to take a console screenshot.

See here for CLI https://docs.aws.amazon.com/cli/latest/reference/ec2/get-console-screenshot.html

And here for the SDK https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetConsoleScreenshot.html

AWS
AWSJoe
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions