简体   繁体   中英

AWS Python SDK Boto3

Is there a way to use Boto3 client in python to check processes running on a AWS EC2 Windows instance? Also is it possible to start an application on a AWS Windows EC2 instance using the boto3 Python SDK?

You can start a process on an EC2 instance using the AWS System Manager service, which you can call via Boto3 . Note that this requires you to have the SSM agent running on the EC2 instance.

Checking the processes running on an EC2 instance might be a bit more difficult. I suppose you could execute something like a ps command (not sure what the equivalent is in Windows) via the SSM service, and then parse the output in the response your Python function receives.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM