Tag Archives: Vagrant

Using Vagrant on Windows 10

Step One – Installing Vagrant

  1. Download Vagrant
  1. Install after download completes.
  • This step assumes familiarity installing Windows applications.
  1. Reboot as informed by the installer.
  2. Launch PowerShell (Choose Run as Administrator)
  3. Install AWS-provider plugin:
  • vagrant plugin install vagrant-aws
  1. Create a project folder on root of C:\
  • mkdir project
  1. Run “vagrant init”
  2. Add dummy.box from Mitchell Hashimoto.

Step Two – Using Vagrant

  1. Use Scott Lowe’s blog on how use vagrant with AWS plugin.
  1. Create Vagrantfile and instances.yml similar to those of Scott Lowe’s github project.
  1. Since the Vagrantfile is looking in the user environment for AWS related key_id and secret_key, use set command to add this info to the environment:
  • set AWS_ACCESS_KEY_ID=
  • set AWS_SECRET_ACCESS_KEY=
  1. Customize instances.yml for your needs.
  2. Save files and run “vagrant up”.
  3. Check AWS Console under EC2 for running instance.
  4. Use Putty-gen to convert keypair.pem to keypair.ppk.
  • This step assumes familiarity with Putty.
  1. Setup a connection in Putty to connect to running instance.
  • This step assumes familiarity with Putty.
  1. SSH to instance using connection setup in previous step.
  2. Once done, run “vagrant destroy” to delete instance.
  3. Verify status of instance is “Terminated” on AWS Console.
  4. Logout of AWS Console.