Vagrant machine status
If you need to get the status of a vagrant machine, you can run the following in a command window:
vagrant status aws --machine-readable | awk -F"," '{if ($3 == "state") print $4;}'Will output:
runningif the machine is running or
not_createdif it is not.