Amazon EC2 - how to get list of process running on instances via AWS API?

4.7k Views Asked by At

How to get a list of process running on Amazon EC2 instances via the AWS API?

2

There are 2 best solutions below

1
mickzer On

This isn't possible. The EC2 API doesn't provide any actions to perform operations or retrieve data from the operating system layer.

0
John Rotenstein On

This could be accomplished by using the Amazon EC2 Systems Manager Run Command, which uses an agent installed on EC2 instances to run remote commands.

It takes a bit of configuration, but allows you to run commands on potentially hundreds of instances with one command.