I want to get a list of processes running on my EC2
instance(Linux, windows or whatever) using a script.
I researched a bit and got to know I will have to install SSM agent
on my instance and then create document containing command to list processes. Document contain "content" field but how do I insert ps -A
command in content? It's all too confusing?
I also want to know that is it possible using creating a SSH connection to my instance and log in to instance all in a single script?