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

gefragt vor 2 Jahren730 Aufrufe
1 Antwort
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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen