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

已提问 2 年前730 查看次数
1 回答
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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则