Start a new topic

Running Guest OS Commands on AWS Instances

vCommander provides built in capabilities to execute Guest OS commands against VMs using WMI and PowerShell on Windows and SSH and Bash on Linux. Using these features against cloud native VM instances, such as Amazon EC2 instances, requires you to open ports to the VMs which you may not want to open over the public internet.


To address this, we have created a vCommander Plugin which allows you to execute Guest OS commands against AWS EC2 instances using the Amazon System Manager agent which removes the requirement to open additional ports to the VM.


The Plugin JAR and README can be found here:

https://github.com/Embotics/Plug-in-Workflow-Steps/tree/master/awsruncmd


To install the Plugin, please reference the instructions here:

https://docs.embotics.com/vCommander/Using-Plug-In-WF-Steps.htm#Adding


Once installed, you can use the Plugin step to execute a Guest OS command as part of a Command Workflow, Completion Workflow or Change Request Completion Workflow.


The Plugin step requires you to input the script you wish to execute against the target VM. The plugin will automatically pick up the target and credentials for the AWS account where the target VM is located.


The Plugin step will also identify the OS on the target VM and invoke the correct execution method (Bash or PowerShell) but you are responsible for ensuring the script you enter will run on the OS you are executing against.


Login or Signup to post a comment