Vagrant Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 58: Line 58:


=Managing a VM in an AWS Environment=
=Managing a VM in an AWS Environment=
{{External|https://github.com/mitchellh/vagrant-aws}}
{{Internal|Vagrant AWS Provider|Vagrant AWS Provider}}
 
==Describe the VM in a Vagrantfile==

Revision as of 19:30, 17 November 2019

External

Internal

Plugin Operations

Plugin Operations

Environment Operations

Environment Operations

Box Operations

List

vagrant box list

Instance Operations

Instance Operations

init

https://www.vagrantup.com/docs/cli/init.html
vagrant init

ssh

Connect to machine via SSH:

vagrant ssh

How does it know to connect to the instance it was started? More about jump box.


global-status

Global status of the VM:

vagrant global-status

status

vagrant status [name|id]

destroy

Stops and deletes all traces of the vagrant machine:

vagrant destroy
vagrant destroy [name|id]

If the corresponding VM runs in AWS EC2, this terminates the instance.

Managing a VM in an AWS Environment

Vagrant AWS Provider