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:


if the machine is running or


if it is not.

Leave a Reply

Your email address will not be published. Required fields are marked *