Giter Club home page Giter Club logo

vagrant-aws's Introduction

Vagrant AWS Provider

![Gitter](https://badges.gitter.im/Join Chat.svg)

[![Gem Version](https://badge.fury.io/rb/vagrant-aws.png)][gem] [![Dependency Status](https://gemnasium.com/mitchellh/vagrant-aws.png)][gemnasium]

This is a Vagrant 1.2+ plugin that adds an AWS provider to Vagrant, allowing Vagrant to control and provision machines in EC2 and VPC.

NOTE: This plugin requires Vagrant 1.2+,

Features

  • Boot EC2 or VPC instances.
  • SSH into the instances.
  • Provision the instances with any built-in Vagrant provisioner.
  • Minimal synced folder support via rsync.
  • Define region-specific configurations so Vagrant can manage machines in multiple regions.
  • Package running instances into new vagrant-aws friendly boxes

Usage

Install using standard Vagrant 1.1+ plugin installation methods. After installing, vagrant up and specify the aws provider. An example is shown below.

$ vagrant plugin install vagrant-aws
...
$ vagrant up --provider=aws
...

Of course prior to doing this, you'll need to obtain an AWS-compatible box file for Vagrant.

Quick Start

After installing the plugin (instructions above), the quickest way to get started is to actually use a dummy AWS box and specify all the details manually within a config.vm.provider block. So first, add the dummy box using any name you want:

$ vagrant box add dummy https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box
...

And then make a Vagrantfile that looks like the following, filling in your information where necessary.

Vagrant.configure("2") do |config|
  config.vm.box = "dummy"

  config.vm.provider :aws do |aws, override|
    aws.access_key_id = "YOUR KEY"
    aws.secret_access_key = "YOUR SECRET KEY"
    aws.session_token = "SESSION TOKEN"
    aws.keypair_name = "KEYPAIR NAME"

    aws.ami = "ami-7747d01e"

    override.ssh.username = "ubuntu"
    override.ssh.private_key_path = "PATH TO YOUR PRIVATE KEY"
  end
end

And then run vagrant up --provider=aws.

This will start an Ubuntu 12.04 instance in the us-east-1 region within your account. And assuming your SSH information was filled in properly within your Vagrantfile, SSH and provisioning will work as well.

Note that normally a lot of this boilerplate is encoded within the box file, but the box file used for the quick start, the "dummy" box, has no preconfigured defaults.

If you have issues with SSH connecting, make sure that the instances are being launched with a security group that allows SSH access.

Note: if you don't configure aws.access_key_id or aws_secret_access_key it will attempt to read credentials from environment variables first and then from $HOME/.aws/. You can choose your AWS profile and files location by using aws.aws_profile and aws.aws_dir, however environment variables will always have precedence as defined by the AWS documentation. To use profile vagrantDev from your AWS files:

  # this first line can actually be omitted
  aws.aws_dir = ENV['HOME'] + "/.aws/"
  aws.aws_profile = "vagrantDev"

Box Format

Every provider in Vagrant must introduce a custom box format. This provider introduces aws boxes. You can view an example box in the example_box/ directory. That directory also contains instructions on how to build a box.

The box format is basically just the required metadata.json file along with a Vagrantfile that does default settings for the provider-specific configuration for this provider.

Configuration

This provider exposes quite a few provider-specific configuration options:

  • access_key_id - The access key for accessing AWS
  • ami - The AMI id to boot, such as "ami-12345678"
  • availability_zone - The availability zone within the region to launch the instance. If nil, it will use the default set by Amazon.
  • aws_profile - AWS profile in your config files. Defaults to default.
  • aws_dir - AWS config and credentials location. Defaults to $HOME/.aws/.
  • instance_ready_timeout - The number of seconds to wait for the instance to become "ready" in AWS. Defaults to 120 seconds.
  • instance_check_interval - The number of seconds to wait to check the instance's state
  • instance_package_timeout - The number of seconds to wait for the instance to be burnt into an AMI during packaging. Defaults to 600 seconds.
  • instance_type - The type of instance, such as "m3.medium". The default value of this if not specified is "m3.medium". "m1.small" has been deprecated in "us-east-1" and "m3.medium" is the smallest instance type to support both paravirtualization and hvm AMIs
  • keypair_name - The name of the keypair to use to bootstrap AMIs which support it.
  • monitoring - Set to "true" to enable detailed monitoring.
  • session_token - The session token provided by STS
  • private_ip_address - The private IP address to assign to an instance within a VPC
  • elastic_ip - Can be set to 'true', or to an existing Elastic IP address. If true, allocate a new Elastic IP address to the instance. If set to an existing Elastic IP address, assign the address to the instance.
  • region - The region to start the instance in, such as "us-east-1"
  • secret_access_key - The secret access key for accessing AWS
  • security_groups - An array of security groups for the instance. If this instance will be launched in VPC, this must be a list of security group Name. For a nondefault VPC, you must use security group IDs instead (http://docs.aws.amazon.com/cli/latest/reference/ec2/run-instances.html).
  • iam_instance_profile_arn - The Amazon resource name (ARN) of the IAM Instance Profile to associate with the instance
  • iam_instance_profile_name - The name of the IAM Instance Profile to associate with the instance
  • subnet_id - The subnet to boot the instance into, for VPC.
  • associate_public_ip - If true, will associate a public IP address to an instance in a VPC.
  • ssh_host_attribute - If :public_ip_address, :dns_name, or :private_ip_address, will use the public IP address, DNS name, or private IP address, respectively, to SSH to the instance. By default Vagrant uses the first of these (in this order) that is known. However, this can lead to connection issues if, e.g., you are assigning a public IP address but your security groups prevent public SSH access and require you to SSH in via the private IP address; specify :private_ip_address in this case.
  • tenancy - When running in a VPC configure the tenancy of the instance. Supports 'default' and 'dedicated'.
  • tags - A hash of tags to set on the machine.
  • package_tags - A hash of tags to set on the ami generated during the package operation.
  • use_iam_profile - If true, will use IAM profiles for credentials.
  • block_device_mapping - Amazon EC2 Block Device Mapping Property
  • elb - The ELB name to attach to the instance.
  • unregister_elb_from_az - Removes the ELB from the AZ on removal of the last instance if true (default). In non default VPC this has to be false.
  • terminate_on_shutdown - Indicates whether an instance stops or terminates when you initiate shutdown from the instance.
  • endpoint - The endpoint URL for connecting to AWS (or an AWS-like service). Only required for non AWS clouds, such as eucalyptus.

These can be set like typical provider-specific configuration:

Vagrant.configure("2") do |config|
  # ... other stuff

  config.vm.provider :aws do |aws|
    aws.access_key_id = "foo"
    aws.secret_access_key = "bar"
  end
end

Note that you do not have to hard code your aws.access_key_id or aws.secret_access_key as they will be retrieved from the enviornment variables AWS_ACCESS_KEY and AWS_SECRET_KEY.

In addition to the above top-level configs, you can use the region_config method to specify region-specific overrides within your Vagrantfile. Note that the top-level region config must always be specified to choose which region you want to actually use, however. This looks like this:

Vagrant.configure("2") do |config|
  # ... other stuff

  config.vm.provider :aws do |aws|
    aws.access_key_id = "foo"
    aws.secret_access_key = "bar"
    aws.region = "us-east-1"

    # Simple region config
    aws.region_config "us-east-1", :ami => "ami-12345678"

    # More comprehensive region config
    aws.region_config "us-west-2" do |region|
      region.ami = "ami-87654321"
      region.keypair_name = "company-west"
    end
  end
end

The region-specific configurations will override the top-level configurations when that region is used. They otherwise inherit the top-level configurations, as you would probably expect.

Networks

Networking features in the form of config.vm.network are not supported with vagrant-aws, currently. If any of these are specified, Vagrant will emit a warning, but will otherwise boot the AWS machine.

Synced Folders

There is minimal support for synced folders. Upon vagrant up, vagrant reload, and vagrant provision, the AWS provider will use rsync (if available) to uni-directionally sync the folder to the remote machine over SSH.

See Vagrant Synced folders: rsync

Other Examples

Tags

To use tags, simply define a hash of key/value for the tags you want to associate to your instance, like:

Vagrant.configure("2") do |config|
  # ... other stuff

  config.vm.provider "aws" do |aws|
    aws.tags = {
	  'Name' => 'Some Name',
	  'Some Key' => 'Some Value'
    }
  end
end

User data

You can specify user data for the instance being booted.

Vagrant.configure("2") do |config|
  # ... other stuff

  config.vm.provider "aws" do |aws|
    # Option 1: a single string
    aws.user_data = "#!/bin/bash\necho 'got user data' > /tmp/user_data.log\necho"

    # Option 2: use a file
    aws.user_data = File.read("user_data.txt")
  end
end

Disk size

Need more space on your instance disk? Increase the disk size.

Vagrant.configure("2") do |config|
  # ... other stuff

  config.vm.provider "aws" do |aws|
    aws.block_device_mapping = [{ 'DeviceName' => '/dev/sda1', 'Ebs.VolumeSize' => 50 }]
  end
end

ELB (Elastic Load Balancers)

You can automatically attach an instance to an ELB during boot and detach on destroy.

Vagrant.configure("2") do |config|
  # ... other stuff

  config.vm.provider "aws" do |aws|
    aws.elb = "production-web"
  end
end

Development

To work on the vagrant-aws plugin, clone this repository out, and use Bundler to get the dependencies:

$ bundle

Once you have the dependencies, verify the unit tests pass with rake:

$ bundle exec rake

If those pass, you're ready to start developing the plugin. You can test the plugin without installing it into your Vagrant environment by just creating a Vagrantfile in the top level of this directory (it is gitignored) and add the following line to your Vagrantfile

Vagrant.require_plugin "vagrant-aws"

Use bundler to execute Vagrant:

$ bundle exec vagrant up --provider=aws

vagrant-aws's People

Contributors

alexconst avatar bgidley avatar btomasini avatar bwhaley avatar carlsverre avatar colinhebert avatar databus23 avatar dlouvton avatar gitter-badger avatar ijin avatar iwai avatar jnwng avatar kkroo avatar laurencer avatar maljub01 avatar maxlinc avatar mitchellh avatar mypetyak avatar patlachance avatar patrickjs avatar pidah avatar psi avatar richardhightower avatar rosco5 avatar sethvargo avatar sevos avatar tatsuyafw avatar timurb avatar tralamazza avatar turtlebender avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vagrant-aws's Issues

Issue creating new AWS Instance

Good morning,

I am attempting to use this plugin so that I can eventually store all the Vagrantfiles in source and then allow my colleagues to manage the machines we have in EC2. This plugin looks like it is going to be just the ticket :-).

I have created my VagrantFile but when I run the 'vagrant up --provider=aws' I get:

/Applications/Vagrant/embedded/lib/ruby/1.9.1/uri/common.rb:176:in `split': bad URI(is not URI?): https://ec2.#<Vagrant::Config::V2::DummyConfig:0x000001023e4678>.amazonaws.com:443/ (URI::InvalidURIError)

I have a feeling this has something to do with the region (which is set to 'eu-west-1') but that is only a guess.

If you have any pointers that would be great.

Thanks, Russell

Instance creation hangs on "Waiting for SSH to become available..."

I'm using Vagrant 1.1.0 and v0.1.0 of the vagrant-aws plugin. When I try to create an EC2 instance, the creation process gets hung up on "Waiting for SSH to become available...". However, the instance is created and I can see it in my EC2 Dashboard.

Here is my (redacted) Vagrantfile...

Vagrant.configure("2") do |config|
  config.vm.define :testbox do |testbox|
    testbox.vm.box = 'dummy'
    testbox.ssh.username = 'ubuntu'

    testbox.vm.provider :aws do |aws|
      aws.access_key_id = 'KEY'
      aws.secret_access_key = 'ACCESS_KEY'
      aws.keypair_name = 'vagrant-east1'

      aws.ssh_private_key_path = '/home/patrick/.ssh/vagrant-east1.pem'
      aws.ssh_username = 'ubuntu'
      aws.region = 'us-east-1'
      aws.ami = 'ami-de0d9eb7'
      aws.instance_type = 't1.micro'

      aws.tags = {
        Name: 'Vagrant AWS Precise'
      }
    end
  end
end

And here is the output I'm seeing...

patrick@patrick-pangolin:/opt/vagrant-aws$ vagrant up --provider=aws
Bringing machine 'testbox' up with 'aws' provider...
[testbox] Warning! The AWS provider doesn't support any of the Vagrant
high-level network configurations (`config.vm.network`). They
will be silently ignored.
[testbox] Launching an instance with the following settings...
[testbox]  -- Type: t1.micro
[testbox]  -- AMI: ami-de0d9eb7
[testbox]  -- Region: us-east-1
[testbox]  -- Keypair: vagrant-east1
[testbox] Waiting for instance to become "ready"...
[testbox] Waiting for SSH to become available...

I've tried this in the "us-west-2" and "us-east-1" regions with the same result. I must be doing something wrong, but I have no idea what it is.

Could it be possible to specify the name and/or description of the EC2 box

First off let me say that Vagrant 1.1.0 + vagrant-aws has blown my mind! Thanks for all the hard work, and congrats!

A (really) small issue that I'm having is that I'm not able to identify to others in my team which EC2 boxes are running via Vagrant (we run lots of EC2 instance). I know you can set instance tags via the aws.config within the plugin config, but would it also be possible to add functionality to allow the setting of an EC2 instance name or description please?

This way the team can easily see which boxes are being managed via Vagrant! :)

vagrant up --provider=aws not functional (vagrant-aws-0.2.1)

So now vagrant is refusing to use the aws plugin or something--it's complaining about VirtualBox missing, which it is. Here's debug output which shows it looking incorrectly in: /home/david/.vagrant.d/boxes/base/virtualbox/metadata.json instead of in the correct location:

[david@ops-1 chef-repo{master}]$ find ~/.vagrant.d/ -name metadata.json 
/home/david/.vagrant.d/boxes/base/aws/metadata.json
/home/david/.vagrant.d/gems/gems/vagrant-aws-0.2.1/example_box/metadata.json

debug output of vagrant up --provider=aws

DEBUG hosts: Host path search classes: [VagrantPlugins::HostWindows::Host, VagrantPlugins::HostFedora::Host, VagrantPlugins::HostOpenSUSE::Host, VagrantPlugins::HostArch::Host, VagrantPlugins::HostFreeBSD::Host, VagrantPlugins::HostGentoo::Host, VagrantPlugins::HostLinux::Host, VagrantPlugins::HostBSD::Host]
 INFO hosts: Host class: VagrantPlugins::HostLinux::Host
 INFO runner: Running action: #<Vagrant::Action::Builder:0x000000035ab560>
 INFO cli: CLI: ["--provider=aws"] "up" []
DEBUG cli: Invoking command class: VagrantPlugins::CommandUp::Command []
DEBUG command: 'Up' each target VM...
DEBUG command: Getting target VMs for command. Arguments:
DEBUG command:  -- names: []
DEBUG command:  -- options: {:provider=>nil}
DEBUG command: Loading all machines...
 INFO environment: Getting machine: default (virtualbox)
 INFO environment: Uncached load of machine.
 INFO loader: Set :vm_default = []
 INFO loader: Loading configuration in order: [:default, :home, :root, :vm_default]
DEBUG loader: Loading from: default (cache)
DEBUG loader: Loading from: home (cache)
DEBUG loader: Loading from: root (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
 INFO environment: Provider-supported box formats: [:virtualbox]
 INFO box_collection: Searching for box: base (virtualbox) in /home/david/.vagrant.d/boxes/base/virtualbox/metadata.json
 INFO box_collection: Box not found: base (virtualbox)
 INFO machine: Initializing machine: default
 INFO machine:   - Provider: VagrantPlugins::ProviderVirtualBox::Provider
 INFO machine:   - Box: 
 INFO machine:   - Data dir: /home/david/src/infra/chef-repo/.vagrant/machines/default/virtualbox
DEBUG virtualbox: Instantiating the driver for machine ID: nil
 INFO base: VBoxManage path: VBoxManage
 INFO subprocess: Starting process: ["VBoxManage", "--version"]
 INFO environment: Running hook: environment_unload
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000003db0918>
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<Vagrant::Errors::VirtualBoxNotDetected: Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
Vagrant uses the `VBoxManage` binary that ships with VirtualBox, and requires
this to be available on the PATH. If VirtualBox is installed, please find the
`VBoxManage` binary and add it to the PATH environmental variable.>
ERROR vagrant: Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
Vagrant uses the `VBoxManage` binary that ships with VirtualBox, and requires
this to be available on the PATH. If VirtualBox is installed, please find the
`VBoxManage` binary and add it to the PATH environmental variable.

sync_folders fails when known_hosts not pre-populated

Got this output:

$ vagrant up --provider=aws
Bringing machine 'default' up with 'aws' provider...
<snip>
[default] Waiting for SSH to become available...
[default] Machine is booted and ready for use!
[default] Rsyncing folder: /redacted/ => /vagrant
The authenticity of host 'redacted.compute-1.amazonaws.com (1.2.3.4)' can't be established.
ECDSA key fingerprint is f5:1b:6d:79:7a:a1:e7:87:f8:6a:74:69:7d:37:32:a9.
Are you sure you want to continue connecting (yes/no)? yes
[default] Rsyncing folder: /redacted/puppet/main/manifests/ => /tmp/vagrant-puppet/manifests
[default] Rsyncing folder: /redacted/puppet/main/modules/ => /tmp/vagrant-puppet/modules-0

I suggest one fix is to add -o StrictHostKeyChecking=no like so:

diff --git a/lib/vagrant-aws/action/sync_folders.rb b/lib/vagrant-aws/action/sync_folders.rb index 80bccbc..bddc366 100644
--- a/lib/vagrant-aws/action/sync_folders.rb
+++ b/lib/vagrant-aws/action/sync_folders.rb
@@ -38,7 +38,7 @@ module VagrantPlugins
             # Rsync over to the guest path using the SSH info
             command = [
               "rsync", "--verbose", "--archive", "-z",
-              "-e", "ssh -p #{ssh_info[:port]} -i '#{ssh_info[:private_key_path]}'",
+              "-e", "ssh -p #{ssh_info[:port]} -o StrictHostKeyChecking=no -i ' {ssh_info[:private_key_path]}'",
               hostpath,
               "#{ssh_info[:username]}@#{ssh_info[:host]}:#{guestpath}"]

I can send a pull request if you like this fix.

Define global defaults

Is it possible to define defaults for some of the AWS values, such as box, key, and secret?

Missing translations

In the absence of vagrant halt I shut down the instance manually. vagrant status now shows:

Current machine states:

default                  translation missing: en.vagrant_aws.states.short_stopped (aws)

translation missing: en.vagrant_aws.states.long_stopped

`run_provisioner': wrong number of arguments (3 for 2)

DEBUG subprocess: stdout: yum/templates/default/yum-rhel5.conf.erb
DEBUG subprocess: stdout: yum/templates/default/yum-rhel6.conf.erb
DEBUG subprocess: stdout:
sent 968336 bytes  received 12980 bytes  654210.67 bytes/sec
total size is 2128042  speedup is 2.17
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31998
DEBUG subprocess: Exit status: 0
ERROR warden: Error occurred: wrong number of arguments (3 for 2)
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00000106da82a0>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Calling recover: #<VagrantPlugins::AWS::Action::RunInstance:0x00000106d8ef08>
 INFO machine: Calling action: read_state on provider AWS (i-45142d28)
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000100f4c3a0>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x00000100f58858>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x00000100f58830>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadState:0x0000010659eaa0>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 3 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x0000010681d128>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::EnvSet:0x00000106d6a2e8>
 INFO warden: Calling action: #<Berkshelf::Vagrant::Action::SetUI:0x00000106d6a270>
 INFO warden: Calling action: #<Berkshelf::Vagrant::Action::LoadShelf:0x00000106d6a248>
 INFO warden: Calling action: #<Berkshelf::Vagrant::Action::ConfigureChef:0x00000106d6a220>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x00000106d6a1f8>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x00000106d6a1a8>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::TerminateInstance:0x00000106d86ce0>
 INFO interface: info: Terminating the instance...
[default] Terminating the instance...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: wrong number of arguments (3 for 2)
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00000100954df8>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO environment: Running hook: environment_unload
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 2 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x000001068970e0>
 INFO warden: Calling action: #<HashiCorp::Activation::BackgroundCheckEnd:0x00000106894d40>
 INFO logger: Cleaning up background activation thread...
/Users/jdyer/.vagrant.d/gems/gems/vagrant-aws-0.2.1/lib/vagrant-aws/action/timed_provision.rb:9:in `run_provisioner': wrong number of arguments (3 for 2) (ArgumentError)
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builtin/provision.rb:53:in `block in call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builtin/provision.rb:49:in `each'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builtin/provision.rb:49:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/runner.rb:61:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/util/busy.rb:19:in `busy'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/runner.rb:61:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in `call'
    from /Users/jdyer/.vagrant.d/gems/gems/vagrant-aws-0.2.1/lib/vagrant-aws/action/connect_aws.rb:41:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in `call'
    from /Users/jdyer/.vagrant.d/gems/gems/berkshelf-vagrant-1.1.2/lib/berkshelf/vagrant/action/configure_chef.rb:23:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in `call'
    from /Users/jdyer/.vagrant.d/gems/gems/berkshelf-vagrant-1.1.2/lib/berkshelf/vagrant/action/load_shelf.rb:25:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in `call'
    from /Users/jdyer/.vagrant.d/gems/gems/berkshelf-vagrant-1.1.2/lib/berkshelf/vagrant/action/set_ui.rb:12:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builtin/env_set.rb:19:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builder.rb:116:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/runner.rb:61:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/util/busy.rb:19:in `busy'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/runner.rb:61:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/machine.rb:147:in `action'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'

It looks like this method ( https://github.com/mitchellh/vagrant-aws/blob/master/lib/vagrant-aws/action/timed_provision.rb#L9 ) expects 2 parameters but you are now passing it three ( https://github.com/mitchellh/vagrant/blob/master/lib/vagrant/action/builtin/provision.rb#L53 )

Looks like this change is something new in 1.2.1 Vagrant

hashicorp/vagrant@ba2c749

Retry SSH connection if network is unreachable

Hey,

I'm having some trouble with vagrant-aws. I am using an OpenVPN connection to access my servers (port 22 is only accessible through my VPN), but for some reason the network is unreachable in the first minutes -- so I have to retry one or two times to be able to connect (I already confirmed that by hitting ^C twice when Vagrant was waiting for the instance to be ready and then connection manually to the server).

I'm not sure if this is related with my VPN, Amazon Security Groups or the Ubuntu image itself (although I tried with other Ubuntu images and am having the same issue).

In the end, all I need to to configure vagrant-aws to retry the SSH connection if the network is unreachable.

I already tried setting aws.instance_ready_timeout to a longer period of time, but this isn't related with the SSH connection -- it's with the instance ready state itself.

It would be great to have something like aws.ssh_retries = 3 and aws.ssh_timeout = 60 #seconds. What do you think?

Log (with INFO level information) bellow:

[www] Waiting for SSH to become available...
 INFO machine: Calling action: read_ssh_info on provider AWS (i-1e8da410)
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000100d7f2e8>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x00000102057c58>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x00000102057c30>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadSSHInfo:0x000001020972b8>
 INFO ssh: Attempting SSH. Retries: 100. Timeout: 30
 INFO ssh: Attempting to connect to SSH...
 INFO ssh:   - Host: ec2-50-17-138-196.compute-1.amazonaws.com
 INFO ssh:   - Port: 22
 INFO ssh:   - Username: ubuntu
 INFO ssh:   - Key Path: /Users/julio/.ssh/amazon
ERROR warden: Error occurred: Network is unreachable - connect(2)
 INFO warden: Beginning recovery process...

(after that, it terminates my instance)

Implement 'vagrant halt'

Only vagrant destroy is implemented so far. It should be possible to stop any ec2 instance, although non-ebs backed instances will lose all their data.

vagrant up fails during provisioning stage

Hey, I'm trying to get a local vagrant setup working on AWS, and I'm running into an issue during provisioning (see logs below). I tried installing chef-solo manually, but it seems to be a bit crazier than I imagined - are there any AWS-compatible boxes with chef-solo already set up?

mwarkentin@Michaels-MacBook-Air shrinkray-worker (shrink-shell-script) $ vagrant up --provider=aws
Bringing machine 'default' up with 'aws' provider...
[default] Warning! The AWS provider doesn't support any of the Vagrant
high-level network configurations (`config.vm.network`). They
will be silently ignored.
[default] Launching an instance with the following settings...
[default]  -- Type: m1.small
[default]  -- AMI: ami-7747d01e
[default]  -- Region: us-east-1
[default]  -- SSH Port: 22
[default]  -- Keypair: shrinkray-worker-vagrant
[default]  -- Security Groups: ["Vagrant"]
[default] Waiting for instance to become "ready"...
[default] Waiting for SSH to become available...
[default] Machine is booted and ready for use!
[default] Rsyncing folder: /Users/mwarkentin/github/shrinkray-worker/ => /vagrant
[default] Rsyncing folder: /Users/mwarkentin/github/shrinkray-worker/cookbooks/ => /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] Running provisioner: VagrantPlugins::Chef::Provisioner::ChefSolo...
The chef binary (either `chef-solo` or `chef-client`) was not found on
the VM and is required for chef provisioning. Please verify that chef
is installed and that the binary is available on the PATH.

Unrecognised config keys cause unclear error

I accidentally put this into my Vagrantfile: aws.type = "t1.micro" (instead of aws.instance_type), which caused the following error when running vagrant in that directory:

$ vagrant
/home/redacted/Vagrantfile:119:in `block (2 levels) in <top (required)>': undefined method `type=' for #<VagrantPlugins::AWS::Config:0x000000023fc120> (NoMethodError)
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/kernel_v2/config/vm.rb:205:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/kernel_v2/config/vm.rb:205:in `block (2 levels) in finalize!'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/kernel_v2/config/vm.rb:205:in `each'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/kernel_v2/config/vm.rb:205:in `block in finalize!'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/kernel_v2/config/vm.rb:198:in `each'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/kernel_v2/config/vm.rb:198:in `finalize!'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/lib/vagrant/config/v2/root.rb:44:in `block in finalize!'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/lib/vagrant/config/v2/root.rb:43:in `each'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/lib/vagrant/config/v2/root.rb:43:in `finalize!'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/lib/vagrant/config/v2/loader.rb:21:in `finalize'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/lib/vagrant/config/loader.rb:159:in `load'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/lib/vagrant/environment.rb:238:in `config_global'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/lib/vagrant/environment.rb:441:in `block in action_runner'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/lib/vagrant/action/runner.rb:28:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/lib/vagrant/action/runner.rb:28:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/lib/vagrant/environment.rb:251:in `hook'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/lib/vagrant/environment.rb:131:in `initialize'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/bin/vagrant:53:in `new'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.1.2/bin/vagrant:53:in `<top (required)>'
    from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:in `load'
    from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:in `<main>'

Create new elastic IP and assign to instance

Hi,

did I miss a config key or is it not possible at the moment to assign a free elastic IP to a VM? There seems to be a warning even, but no way to assign the elastic IP from within the Vagrantfile:

[default] Warning! You're launching this instance into a VPC without an
elastic IP. Please verify you're properly connected to a VPN so
you can access this machine, otherwise Vagrant will not be able
to SSH into it.

Support Spot Instances

Testing costs could be lowered from 3 cents an hour to .003 cents an hour.

Edited to remove development from issue, tralamazza has a point

managing secret_access_key data

If I've got different machines which use different aws.access_key_id values, then I'm going to want to configure those in the Vagrantfile for the project. I don't want the aws.secret_access_key value to be in the file that I'm going to put in version control though, and perhaps sharing with others so I want to configure that in ~/.vagrant/Vagrantfile.

Problem is that depending which project I'm working on, I'll be using different values for aws.secret_access_key. I'd like to be able to have configuration on a per user basis to look up the appropriate aws.secret_access_key value based on the aws.access_key_id.

I'm not all that thrilled with storing the aws.secret_access_key in a file in cleartext. It'd be nice if there was an option for storing that in encrypted form, which would then require entering a password to perform various operations. No doubt I could hack in a bit of ruby for this in the config file so it'd get the value from the decrypted content of a file, but then it'd ask me for that password even for operations (like vagrant ssh, or vagrant provision) that don't need to use that key. Besides which if the functionality goes into vagrant-aws then it'll save a bunch of people doing that hack independently.

Allow configuring files to ignore on sync

We have a fairly large .git directory and a potentially large logs directory that it would make sense to exclude. Would be nice if the excludes were configurable so that we could set that up.

environment scoped provisioners

Feature request: The ability to scope provisioners to an environment. For example I may want to set a cookbook_path and different chef config for Virtualbox vs AWS. ( Possibly a dupe of #22 )

PTY needed with Net::SSH for sudo commands

I encountered this

INFO ssh: Execute: mkdir -p '/vagrant' (sudo=true) DEBUG ssh: stderr: sudo DEBUG ssh: stderr: : DEBUG ssh: stderr: sorry, you must have a tty to run sudo DEBUG ssh: stderr:

Which means that .request_pty is needed for Net::SSH somewhere.

Store list of boxes on AWS

This actually seems like a perfect tool for deployment - I'm testing the ability to use it for that at the moment. One thing that would make it way more awesome is the ability to store the box list in AWS somewhere, so that I can do a "vagrant up --provider=aws" on one machine, and have a colleague be able to do "vagrant status --provider=aws" on another and see the status of those boxes.

I think you could use tags on the EC2 boxes to track them as vagrant managed and track their name in the vagrant config, and maybe have some sort of tag for a particular vagrant configuration if you wanted to allow multiple sets of vagrant configurations for a given EC2 account.

Exception when setting security_groups

I am setting security_groups with the following in my Vagrantfile:

config.vm.provider :aws do |aws, override|
    aws.access_key_id = <REDACTED>
    aws.secret_access_key = <REDACTED>
    aws.keypair_name = <REDACTED>

    aws.ami = "ami-7747d01e"
    aws.instance_type = 't1.micro'

    aws.security_groups = ['vagrant']

    override.ssh.username = "ubuntu"
    override.ssh.private_key_path = <REDACTED>
  end

I created the vagrant security group via the AWS web interface. I can connect without specifying a security group, but then my SSH command hangs.

Unfortunately, having the "aws.security_groups" line present causes a huge exception:

ERROR warden: Error occurred: Expected(200) <=> Actual(400 Bad Request)
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<VagrantPlugins::AWS::Action::RunInstance:0x007f29c0899270>
 INFO machine: Calling action: read_state on provider AWS (new)
 INFO runner: Running action: #<Vagrant::Action::Builder:0x007f29c04fd4b8>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x007f29c0502bc0>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x007f29c0502b98>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadState:0x007f29c00dc0c8>
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: Expected(200) <=> Actual(400 Bad Request)
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00000001249658>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO environment: Running hook: environment_unload
 INFO runner: Running action: #<Vagrant::Action::Builder:0x0000000177b4f0>
/home/fil/.vagrant.d/gems/gems/excon-0.22.1/lib/excon/middlewares/expects.rb:10:in `response_call': Expected(200) <=> Actual(400 Bad Request) (Excon::Errors::BadRequest)
    from /home/fil/.vagrant.d/gems/gems/excon-0.22.1/lib/excon/connection.rb:355:in `response'
    from /home/fil/.vagrant.d/gems/gems/excon-0.22.1/lib/excon/connection.rb:249:in `request'
    from /home/fil/.vagrant.d/gems/gems/fog-1.10.1/lib/fog/core/connection.rb:21:in `request'
    from /home/fil/.vagrant.d/gems/gems/fog-1.10.1/lib/fog/aws/compute.rb:384:in `_request'
    from /home/fil/.vagrant.d/gems/gems/fog-1.10.1/lib/fog/aws/compute.rb:379:in `request'
    from /home/fil/.vagrant.d/gems/gems/fog-1.10.1/lib/fog/aws/requests/compute/run_instances.rb:119:in `run_instances'
    from /home/fil/.vagrant.d/gems/gems/fog-1.10.1/lib/fog/aws/models/compute/server.rb:173:in `save'
    from /home/fil/.vagrant.d/gems/gems/fog-1.10.1/lib/fog/core/collection.rb:52:in `create'
    from /home/fil/.vagrant.d/gems/gems/vagrant-aws-0.2.2/lib/vagrant-aws/action/run_instance.rb:76:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
    from /home/fil/.vagrant.d/gems/gems/vagrant-aws-0.2.2/lib/vagrant-aws/action/warn_networks.rb:14:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
    from /home/fil/.vagrant.d/gems/gems/vagrant-aws-0.2.2/lib/vagrant-aws/action/sync_folders.rb:21:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/builtin/provision.rb:45:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/busy.rb:19:in `busy'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
    from /home/fil/.vagrant.d/gems/gems/vagrant-aws-0.2.2/lib/vagrant-aws/action/connect_aws.rb:41:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/builder.rb:116:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/busy.rb:19:in `busy'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/machine.rb:147:in `action'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run

A couple of ideas to add to the readme

Hi,

Thanks for this really cool vagrant plugin!

Here are a couple of ideas to add to the tutorial, at least for EC2 newbies like me:

  • mention that the instance_type defaults to 'm1.small', which is outside the Free Tier option.
  • mention that the instances have to belong to a security_group where the ssh service is enabled (It took me some time to understand that the first time I vagranted up my instance).

Cheers, and thanks again.
Romain

Provisioner inside :aws block executes for other providers

Today I dealt with an issue where I had a specific shell provisioner that I only wanted to run on AWS hosts but unfortunately it executes regardless of what provider I use.

For example, say I have this block:

node_config.vm.provider :aws do |aws|
    aws.access_key_id = ENV["AWS_ACCESS_KEY_ID"]
    aws.secret_access_key = ENV["AWS_SECRET_ACCESS_KEY"]
    aws.keypair_name = ENV["AWS_KEYPAIR_NAME"]
    aws.region = "us-east-1"
    aws.ami = "ami-ae9806c7"
    aws.ssh_username = "ubuntu"
    aws.ssh_private_key_path = ENV["AWS_SSH_PRIVKEY"]
    aws.instance_type = "m1.medium"

    node_config.vm.provision :shell, :inline => puppet_bootstrap(node)
  end

puppet_bootstrap still executes if I launch a VM using the virtualbox provider.

Support custom facter parameters when using Puppet

When using Virtualbox you are able to supply custom parameters to your puppet script by adding puppet.facter["app_arguments"] = region.args or puppet.facter = { 'app_arguments' => region.args } in the Vagrantfile and then use it in the puppet script by accessing $app_arguments.

This doesn't seem to work with the aws provider.

SSHAuthenticationFailed: SSH authentication failed!

Environment

jdyer@dyer:~/Dropbox/Projects/deployment_models/phono-gateway-model/gateway_server(masterโšก) ยป vagrant plugin list
berkshelf-vagrant (1.1.2)
thor (0.18.1)
vagrant-aws (0.2.1)
vagrant-awsinfo (0.0.4)
vagrant-omnibus (1.0.0)
vagrant-vbguest (0.7.1)
vagrant-vmware-fusion (0.4.2)

jdyer@dyer:~/Dropbox/Projects/deployment_models/phono-gateway-model/gateway_server(masterโšก) ยป vagrant -v
Vagrant version 1.2.1
DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO ssh: SSH not up: #<Vagrant::Errors::SSHAuthenticationFailed: SSH authentication failed! This is typically caused by the public/private
keypair for the SSH user not being properly set on the guest VM. Please
verify that the guest VM is setup with the proper public key, and that
the private key path for Vagrant is setup properly as well.>
DEBUG ssh: Checking whether SSH is ready...
 INFO machine: Calling action: read_ssh_info on provider AWS (i-13b18271)
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x000001062300d0>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x000001065982e0>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x000001065982b8>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadSSHInfo:0x00000103b3d018>
DEBUG ssh: Checking key permissions: /Users/jdyer/.vagrant.d/insecure_private_key
 INFO ssh: Attempting SSH. Retries: 100. Timeout: 30
 INFO ssh: Attempting to connect to SSH: ec2-184-73-27-113.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-27-113.compute-1.amazonaws.com:22
connection established
negotiating protocol version
remote is `SSH-2.0-OpenSSH_4.3'
local is `SSH-2.0-Ruby/Net::SSH_2.6.7 universal.x86_64-darwin12.2.1'
read 704 bytes
received packet nr 0 type 20 len 700
got KEXINIT from server
sending KEXINIT
queueing packet nr 0 type 20 len 1620
sent 1624 bytes
negotiating algorithms
negotiated:
* kex: diffie-hellman-group-exchange-sha1
* host_key: ssh-rsa
* encryption_server: aes128-cbc
* encryption_client: aes128-cbc
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client:
* language_server:
exchanging keys
queueing packet nr 1 type 34 len 20
sent 24 bytes
read 152 bytes
received packet nr 1 type 31 len 148
queueing packet nr 2 type 32 len 140
sent 144 bytes
read 720 bytes
received packet nr 2 type 33 len 700
queueing packet nr 3 type 21 len 20
sent 24 bytes
received packet nr 3 type 21 len 12
beginning authentication of `vagrant'
queueing packet nr 4 type 5 len 28
sent 52 bytes
read 52 bytes
received packet nr 4 type 6 len 28
trying none
Mechanism none was requested, but isn't a known type.  Ignoring it.
trying publickey
connecting to ssh-agent
sending agent request 1 len 61
received agent packet 2 len 5
sending agent request 11 len 0
received agent packet 12 len 958
trying publickey (dd:3b:b8:2e:85:04:06:e9:ab:ff:a8:0a:c0:04:6e:d6)
queueing packet nr 5 type 50 len 348
sent 372 bytes
read 84 bytes
received packet nr 5 type 51 len 60
allowed methods: publickey,gssapi-with-mic,password
trying password
all authorization methods failed (tried none, publickey, password)

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO ssh: SSH not up: #<Vagrant::Errors::SSHAuthenticationFailed: SSH authentication failed! This is typically caused by the public/private
keypair for the SSH user not being properly set on the guest VM. Please
verify that the guest VM is setup with the proper public key, and that
the private key path for Vagrant is setup properly as well.>
DEBUG ssh: Checking whether SSH is ready...
 INFO machine: Calling action: read_ssh_info on provider AWS (i-13b18271)
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x000001064e3ca0>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x000001064ff748>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x000001064ff6d0>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadSSHInfo:0x0000010168b6c0>
DEBUG ssh: Checking key permissions: /Users/jdyer/.vagrant.d/insecure_private_key
 INFO ssh: Attempting SSH. Retries: 100. Timeout: 30
 INFO ssh: Attempting to connect to SSH: ec2-184-73-27-113.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-27-113.compute-1.amazonaws.com:22
connection established
negotiating protocol version
remote is `SSH-2.0-OpenSSH_4.3'
local is `SSH-2.0-Ruby/Net::SSH_2.6.7 universal.x86_64-darwin12.2.1'
read 704 bytes
received packet nr 0 type 20 len 700
got KEXINIT from server
sending KEXINIT
queueing packet nr 0 type 20 len 1620
sent 1624 bytes
negotiating algorithms
negotiated:
* kex: diffie-hellman-group-exchange-sha1
* host_key: ssh-rsa
* encryption_server: aes128-cbc
* encryption_client: aes128-cbc
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client:
* language_server:
exchanging keys
queueing packet nr 1 type 34 len 20
sent 24 bytes
read 152 bytes
received packet nr 1 type 31 len 148
queueing packet nr 2 type 32 len 140
sent 144 bytes
read 720 bytes
received packet nr 2 type 33 len 700
queueing packet nr 3 type 21 len 20
sent 24 bytes
received packet nr 3 type 21 len 12
beginning authentication of `vagrant'
queueing packet nr 4 type 5 len 28
sent 52 bytes
read 52 bytes
received packet nr 4 type 6 len 28
trying none
Mechanism none was requested, but isn't a known type.  Ignoring it.
trying publickey
connecting to ssh-agent
sending agent request 1 len 61
received agent packet 2 len 5
sending agent request 11 len 0
received agent packet 12 len 958
trying publickey (dd:3b:b8:2e:85:04:06:e9:ab:ff:a8:0a:c0:04:6e:d6)
queueing packet nr 5 type 50 len 348
sent 372 bytes
read 84 bytes
received packet nr 5 type 51 len 60
allowed methods: publickey,gssapi-with-mic,password
trying password
all authorization methods failed (tried none, publickey, password)

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO ssh: SSH not up: #<Vagrant::Errors::SSHAuthenticationFailed: SSH authentication failed! This is typically caused by the public/private
keypair for the SSH user not being properly set on the guest VM. Please
verify that the guest VM is setup with the proper public key, and that
the private key path for Vagrant is setup properly as well.>
DEBUG ssh: Checking whether SSH is ready...
 INFO machine: Calling action: read_ssh_info on provider AWS (i-13b18271)
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000104b43098>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x00000104b41478>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x00000104b41450>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadSSHInfo:0x00000103086f70>
DEBUG ssh: Checking key permissions: /Users/jdyer/.vagrant.d/insecure_private_key
 INFO ssh: Attempting SSH. Retries: 100. Timeout: 30
 INFO ssh: Attempting to connect to SSH: ec2-184-73-27-113.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-27-113.compute-1.amazonaws.com:22
connection established
negotiating protocol version
remote is `SSH-2.0-OpenSSH_4.3'
local is `SSH-2.0-Ruby/Net::SSH_2.6.7 universal.x86_64-darwin12.2.1'
read 704 bytes
received packet nr 0 type 20 len 700
got KEXINIT from server
sending KEXINIT
queueing packet nr 0 type 20 len 1620
sent 1624 bytes
negotiating algorithms
negotiated:
* kex: diffie-hellman-group-exchange-sha1
* host_key: ssh-rsa
* encryption_server: aes128-cbc
* encryption_client: aes128-cbc
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client:
* language_server:
exchanging keys
queueing packet nr 1 type 34 len 20
sent 24 bytes

If I try the key manually everything works

 ssh [email protected] -i ~/.ssh/test_ssh_key.pem
Last login: Wed Apr 17 11:09:22 2013 from 98.230.189.241

This just started happening w/ 1.2.1

Feature request: Provision multiple EC2 instances in AWS Elastic Load Balancer

I would like to provision multiple AWS instances in AWS Elastic Load Balancer to test/validate load-balanced applications in AWS.

This would probably require:

  • Creating a load balancer
  • Configuring a Health-check
  • Adding instances to the load-balancer
  • deleting the load-balancer on instance termination

I don't have a pull request for this , but thought that this would only add extra brownie poinnts to vagrant awesomeness!

Vagrant-AWS should provide a way to get instance data

So in CI I would love to use Vagrant-AWS as part of my build process. It would deploy an instance which I can then run functional tests against it. Once the automated tests are done I can simply vagrant destroy and move on. The only problem is I dont have an easy way right now of getting data, such as the public IP address, from the running VM.
Is this supported and I am just missing it ?

If this not somethign currenly supported then I guess we can consider this a feature request and I'll detail what I would love to see and open this up for comments / thoughts...

The current behavior from status is like this:

jdyer@dyer:~/phono-gateway-model/gateway_server(masterโšก) ยป vagrant status
Current machine states:

default                  running (aws)

I propose something more like this:

jdyer@dyer:~/phono-gateway-model/gateway_server(masterโšก) ยป vagrant status
Current machine states:

default                  running (aws)
                            public_ipv4: 1.2.3.4
                            private_ipv4: 10.1.1.1

And a more programmatically accessible API which gives you json or XML output:

vagrant status --json
{
 "default": {
   "aws" : {
     "running" : true,
     "public_ipv4" : "1.2.3.4",
     "private_ipv4" : "10.1.1.1"
  }
}

Just a thought...

Failing with EC2 Amazon Linux Images?

I have no problems firing up Ubuntu instances on EC2 with vagrant-aws.

However, when I try to bring up Amazon Linux images, I get an error every time, which seems to be some problem related to sudo on the guest VM.

For example, based on this Vagrantfile:

Vagrant.configure("2") do |config|

  config.vm.box = "testbox"
  config.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"

    config.vm.provider :aws do |aws, override|
        aws.ami = "ami-05355a6c"
        override.ssh.username = "ec2-user"
    end
end

Here is the failed output trying to bring up the instance:

$ vagrant up --provider aws
Bringing machine 'default' up with 'aws' provider...
[default] Warning! The AWS provider doesn't support any of the Vagrant
high-level network configurations (`config.vm.network`). They
will be silently ignored.
[default] Launching an instance with the following settings...
[default]  -- Type: m1.small
[default]  -- AMI: ami-05355a6c
[default]  -- Region: us-east-1
[default]  -- Keypair: mykey
[default] Waiting for instance to become "ready"...
[default] Waiting for SSH to become available...
[default] Machine is booted and ready for use!
[default] Rsyncing folder: /Users/tester/ => /vagrant
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mkdir -p '/vagrant'

If I try it again with debugging on, here is what I think is the relevant output:

 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadSSHInfo:0x00000100f5d920>
 INFO interface: info: Rsyncing folder: /Users/tester/ => /vagrant
[default] Rsyncing folder: /Users/tester/ => /vagrant
DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: mkdir -p '/vagrant' (sudo=true)
DEBUG ssh: stderr: sudo
DEBUG ssh: stderr: : 
DEBUG ssh: stderr: sorry, you must have a tty to run sudo
DEBUG ssh: stderr: 

Any thoughts?

Again, if I change only aws.ami to any Ubuntu flavored image (and override.ssh.username to 'ubuntu', too, of course) in the Vagrantfile pasted above, this works every time.

uninitialized constant VagrantPlugins::AWS::Action::DestroyConfirm

Hi,
I've found a bug in recent version of vagrant-aws (0.3.0-dev, latest pull from master branch).

Instance destroy fails. Here is the stacktrace:

/home/ubuntu/.vagrant.d/gems/gems/vagrant-aws-0.3.0.dev/lib/vagrant-aws/action.rb:14:in block in action_destroy': uninitialized constant VagrantPlugins::AWS::Action::DestroyConfirm (NameError) from /home/ubuntu/.vagrant.d/gems/gems/vagrant-aws-0.3.0.dev/lib/vagrant-aws/action.rb:13:intap'
from /home/ubuntu/.vagrant.d/gems/gems/vagrant-aws-0.3.0.dev/lib/vagrant-aws/action.rb:13:in action_destroy' from /home/ubuntu/.vagrant.d/gems/gems/vagrant-aws-0.3.0.dev/lib/vagrant-aws/provider.rb:16:inaction'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/machine.rb:130:in action' from /opt/vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/destroy/command.rb:23:inblock in execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/plugin/v2/command.rb:182:in block in with_target_vms' from /opt/vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/plugin/v2/command.rb:180:ineach'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/plugin/v2/command.rb:180:in with_target_vms' from /opt/vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/destroy/command.rb:22:inexecute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/cli.rb:46:in execute' from /opt/vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/environment.rb:460:incli'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.1/bin/vagrant:84:in <top (required)>' from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:inload'
from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:in `

'

I don't have patch for this, because I don't know ruby.

Specifying `aws.ssh_username` does not set `Machine::config.ssh.username`

First of all, this is a really cool plugin! Thanks a lot for the whole Vagrant 1.1 stuff! ๐Ÿฐ

One issue I found is that aws.ssh_username doesn't get passed to upstream, and thus at least the Chef provisioner uses wrong username to chown the provisioning_path. Quick grep found also a couple of other places that might have a similar problem.

This can be worked around by setting also config.ssh.username but that's duplicated work. =)

chef_client provisioner with use of vagrant-omnibus is erroring

Using vagrant-omnibus in head of config, in combination with config.vm.provision :chef_client, results in the following.

/home/user/.vagrant.d/gems/gems/vagrant-aws-0.2.1/lib/vagrant-aws/action/timed_provision.rb:9:in run_provisioner': wrong number of arguments (3 for 2) (ArgumentError) from /opt/vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builtin/provision.rb:53:inblock in call'

Can not create VPC instances.

vagrant-aws works fine at non VPC envrinment,
but with VPC, when I ran "vagrant up --provider=aws",
the messages below were shown repeatedly and endlessly, so I finally killed the command.

DEBUG ssh: == Net-SSH connection debug-level log END ==
INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
INFO ssh: Attempting to connect to SSH: :22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: D, [2013-03-23T12:39:59.250253 #1324] DEBUG -- net.ssh.transport.session[818fedb0]: establishing connection to :22

I found that ssh_info[:host] value is empty at gems/gems/vagrant-1.1.2/plugins/communicators/ssh/communicator.rb at this point.
(ssh_info[:user] is set correctly)

my environment works fine because the command below run successfully.

ssh [email protected] -i echo $AWS_PRIVATE_KEY_PATH

Does parallel provisioning work ?

@mitchellh So the readme for Vagrant 1.2.0 mentions Parallel provisioning, but I see no additional information on this.

Providers can now parallelize! If they explicitly support it, Vagrant will run "up" and other commands in parallel. For providers such AWS, this means that your instances will come up in parallel. VirtualBox does not support this mode.  

Does this work ? Do I need to enable it ? I ask because I have a multiVM AWS deploy which is happening serially right now. Thanks!

SyncFolders fails when host directory does not exist

Prior to Vagrant 1.1, the documentation stated that a :create flag could be passed in config.vm.sync_folders to create the directory on a host if it did not already exist. In Vagrant 1.1, the documentation is not clear about the status of this flag but it does create the host directory with the VirtualBox provider.

With the AWS provider, however, the user is presented with the following error if the host directory does not exist (with or without a :create flag present):

[default] Rsyncing folder: /home/chooper/docker/ => ~/docker
There was an error when attemping to rsync a share folder.
Please inspect the error message below for more info.

Host path: /home/chooper/docker/
Guest path: ~/docker
Error: rsync: change_dir "/home/chooper/docker" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1070) [sender=3.0.9]

To clearly restate, the expected behavior is for the directory to be created on the host prior to the attempted rsync.

rsync: No such file or directory

I've been developing a small server in Vagrant, and I'm trying to deploy it to AWS. I get past starting the machine, ssh, and mkdir -p /vagrant, but then terminate at rsync. Here is the Vagrantfile:

Vagrant.configure("2") do |config|
  config.vm.box = "precise32"
  config.vm.box_url = "http://files.vagrantup.com/precise32.box"

  config.vm.network :forwarded_port, guest: 80, host: 8000

  config.vm.provision :puppet do |puppet|
      puppet.manifests_path = "manifests"
      puppet.manifest_file  = "base.pp"
  end

  config.vm.network :private_network, ip: "33.33.33.33"

  config.vm.provider :aws do |aws, override|
    override.vm.box = 'dummy'
    override.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"

    aws.access_key_id = REDACTED
    aws.secret_access_key = REDACTED
    aws.keypair_name = REDACTED

    aws.ami = 'ami-de0d9eb7'
    aws.instance_type = 't1.micro'

    aws.security_groups = ['vagrant']

    override.ssh.username = "ubuntu"
    override.ssh.private_key_path = REDACTED
  end

  end

Here is the output post-SSH ready with verbose debugging:

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO ssh: SSH is ready!
 INFO run_instance: Time for SSH ready: 32.84402871131897
 INFO interface: info: Machine is booted and ready for use!
[default] Machine is booted and ready for use!
 INFO machine: Calling action: read_ssh_info on provider AWS (i-5d798435)
 INFO runner: Running action: #<Vagrant::Action::Builder:0x007fc55455a098>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x007fc554561898>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x007fc554561780>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadSSHInfo:0x007fc55407db88>
 INFO interface: info: Rsyncing folder: /home/fil/code/administrator/ => /vagrant
[default] Rsyncing folder: /home/fil/code/administrator/ => /vagrant
DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: mkdir -p '/vagrant' (sudo=true)
DEBUG ssh: stderr: stdin: is not a tty

DEBUG ssh: Exit status: 0
DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: chown ubuntu '/vagrant' (sudo=true)
DEBUG ssh: stderr: stdin: is not a tty

DEBUG ssh: Exit status: 0
 INFO subprocess: Starting process: ["rsync", "--verbose", "--archive", "-z", "--exclude", ".vagrant/", "-e", "ssh -p 22 -o StrictHostKeyChecking=no -i '/home/fil/enc_projects/crowbrain/fil_administrator.pem'", "/home/fil/code/administrator/", "[email protected]:/vagrant"]
ERROR warden: Error occurred: No such file or directory - rsync
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<VagrantPlugins::AWS::Action::RunInstance:0x007fc5544c9a48>
 INFO machine: Calling action: read_state on provider AWS (i-5d798435)
 INFO runner: Running action: #<Vagrant::Action::Builder:0x007fc555b249f0>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x007fc555b236e0>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x007fc555b236b8>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadState:0x007fc555c703b8>
 INFO runner: Running action: #<Vagrant::Action::Builder:0x007fc55604c0b8>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x007fc5560549c0>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x007fc556054998>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::TerminateInstance:0x007fc5562b1dd0>
 INFO interface: info: Terminating the instance...
[default] Terminating the instance...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: No such file or directory - rsync
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x007fc5546623c8>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO environment: Running hook: environment_unload
 INFO runner: Running action: #<Vagrant::Action::Builder:0x007fc5566a2db8>
/opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/subprocess.rb:84:in `rescue in execute': No such file or directory - rsync (Vagrant::Util::Subprocess::LaunchError)
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/subprocess.rb:77:in `execute'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/subprocess.rb:23:in `execute'
    from /home/fil/.vagrant.d/gems/gems/vagrant-aws-0.2.2/lib/vagrant-aws/action/sync_folders.rb:55:in `block in call'
    from /home/fil/.vagrant.d/gems/gems/vagrant-aws-0.2.2/lib/vagrant-aws/action/sync_folders.rb:25:in `each'
    from /home/fil/.vagrant.d/gems/gems/vagrant-aws-0.2.2/lib/vagrant-aws/action/sync_folders.rb:25:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/builtin/provision.rb:45:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/busy.rb:19:in `busy'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
    from /home/fil/.vagrant.d/gems/gems/vagrant-aws-0.2.2/lib/vagrant-aws/action/connect_aws.rb:41:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/builder.rb:116:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/busy.rb:19:in `busy'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/machine.rb:147:in `action'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'

The directory "/home/fil/code/administrator/" definitely exists.

provider aws not found while in bundler environment

After following the bundler instructions to prepare for developing on the vagrant-aws repo, I get an error when running 'bundle exec vagrant up --provider=aws':

The provider 'aws' could not be found, but was requested to
back the machine 'default'. Please use a provider that exists.

Since I can't use the plugin command in this context either, I'm at a loss as to how to continue.

Support multi VM tagging

Since the networking functionality is not implemented at this time and we cannot make the ip adresses of the launched instances known to each other, it would be great if one could make use of the tagging functionality in a 'per-definition setting'. Like so:

      config.vm.define :producer do |producer_config|
            aws.tags = {
              'role' => 'producer',
              'Name' => 'Producer'
            }
      end

At this time we can only have a single tag definition for all instances launched with one Vagrant file.

vagrant reload warning

Vagrant attempted to call the action 'reload' on the provider
'AWS (i-.......)', but this provider doesn't support this action. This
is probably a bug in either the provider or the plugin calling this
action, and should be reported.

Can we call the "folder sync" inside the VM? Instead of using the vagrant reload command?

The EC2 instance supports reboot. Any ideas?

With DEBUG on:

INFO machine: Calling action: reload on provider AWS (i-.....)
INFO environment: Running hook: environment_unload
INFO runner: Running action: #Vagrant::Action::Builder:0x000001012b99c0
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: # 'AWS (i-.....)', but this provider doesn't support this action. This
is probably a bug in either the provider or the plugin calling this
action, and should be reported.>
ERROR vagrant: Vagrant attempted to call the action 'reload' on the provider
'AWS (i-.....)', but this provider doesn't support this action. This
is probably a bug in either the provider or the plugin calling this
action, and should be reported.
ERROR vagrant: /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/machine.rb:135:in action'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/reload/command.rb:29:inblock in execute'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/plugin/v2/command.rb:182:in block in with_target_vms'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/plugin/v2/command.rb:180:ineach'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/plugin/v2/command.rb:180:in with_target_vms'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/reload/command.rb:28:inexecute'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/cli.rb:46:in execute'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/environment.rb:460:incli'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/bin/vagrant:84:in <top (required)>'
/Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:inload'
/Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `'
INFO interface: error: Vagrant attempted to call the action 'reload' on the provider

Can't SSH???

I launched an instance with everything setup correctly. Port 22's open. Any idea?
ian@rtc ~/discourse> vagrant up --provider=aws
Bringing machine 'default' up with 'aws' provider...
[default] Warning! The AWS provider doesn't support any of the Vagrant
high-level network configurations (config.vm.network). They
will be silently ignored.
[default] Launching an instance with the following settings...
[default] -- Type: m1.small
[default] -- AMI: ami-7747d01e
[default] -- Region: us-east-1
[default] -- SSH Port: 22
[default] -- Keypair: New Macbook Air Keys
[default] Waiting for instance to become "ready"...
[default] Waiting for SSH to become available...
When I Ctrl+C it, it then says it's ready and then kills it. :\

vagrant-aws plugin fails to load

Fresh install of Vagrant 1.1 and vagrant-aws provider on virgin Ubuntu 12.04 LTS box. All vagrant commands generate "Failed to load the "vagrant-aws" plugin" error message. Stack trace shows:

Error: #<Gem::LoadError: Unable to activate fog-1.10.0, because net-scp-1.0.4 conflicts with net-scp (~> 1.1)>

This error wasn't happening last Friday.

mkdir -p '/vagrant' responded with a non-zero exit status.

I am getting the following error when trying to provision the instance ( CentOS)

ERROR vagrant: #<Vagrant::Errors::VagrantError: The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mkdir -p '/vagrant'>
ERROR vagrant: The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

I was able to log in via Vagrant and ake the dir w/o any trouble

[root@ip-10-152-169-11 ~]# mkdir -p '/vagrant'
[root@ip-10-152-169-11 ~]# echo $?
0
[root@ip-10-152-169-11 ~]#

here are the full set of logs:

22:26:02 (development) [email protected] runtime_server 12.1 ? VAGRANT_LOG=debug vagrant up --provider=aws
 INFO global: Vagrant version: 1.1.2
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/box/plugin.rb
 INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/destroy/plugin.rb
 INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/halt/plugin.rb
 INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/init/plugin.rb
 INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/package/plugin.rb
 INFO manager: Registered plugin: package command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/plugin/plugin.rb
 INFO manager: Registered plugin: plugin command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/provision/plugin.rb
 INFO manager: Registered plugin: provision command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/reload/plugin.rb
 INFO manager: Registered plugin: reload command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/resume/plugin.rb
 INFO manager: Registered plugin: resume command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/ssh/plugin.rb
 INFO manager: Registered plugin: ssh command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/ssh_config/plugin.rb
 INFO manager: Registered plugin: ssh-config command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/status/plugin.rb
 INFO manager: Registered plugin: status command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/suspend/plugin.rb
 INFO manager: Registered plugin: suspend command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/up/plugin.rb
 INFO manager: Registered plugin: up command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/communicators/ssh/plugin.rb
 INFO manager: Registered plugin: ssh communiator
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/arch/plugin.rb
 INFO manager: Registered plugin: Arch guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/debian/plugin.rb
 INFO manager: Registered plugin: Debian guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/fedora/plugin.rb
 INFO manager: Registered plugin: Fedora guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/linux/plugin.rb
 INFO manager: Registered plugin: Linux guest.
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/openbsd/plugin.rb
 INFO manager: Registered plugin: OpenBSD guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/redhat/plugin.rb
 INFO manager: Registered plugin: RedHat guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/solaris/plugin.rb
 INFO manager: Registered plugin: Solaris guest.
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/suse/plugin.rb
 INFO manager: Registered plugin: SUSE guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/ubuntu/plugin.rb
 INFO manager: Registered plugin: Ubuntu guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/arch/plugin.rb
 INFO manager: Registered plugin: Arch host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/bsd/plugin.rb
 INFO manager: Registered plugin: BSD host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/fedora/plugin.rb
 INFO manager: Registered plugin: Fedora host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/linux/plugin.rb
 INFO manager: Registered plugin: Linux host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/opensuse/plugin.rb
 INFO manager: Registered plugin: OpenSUSE host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/windows/plugin.rb
 INFO manager: Registered plugin: Windows host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/kernel_v1/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/kernel_v2/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/providers/virtualbox/plugin.rb
 INFO manager: Registered plugin: VirtualBox provider
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/provisioners/chef/plugin.rb
 INFO manager: Registered plugin: chef
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/provisioners/puppet/plugin.rb
 INFO manager: Registered plugin: puppet
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/provisioners/shell/plugin.rb
 INFO manager: Registered plugin: shell
 INFO vagrant: `vagrant` invoked: ["up", "--provider=aws"]
DEBUG vagrant: Creating Vagrant environment
 INFO environment: Environment initialized (#<Vagrant::Environment:0x00000102208d40>)
 INFO environment:   - cwd: /Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server
 INFO environment: Home path: /Users/jdyer/.vagrant.d
 INFO environment: Local data path: /Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server/.vagrant
DEBUG environment: Creating: /Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server/.vagrant
DEBUG environment: Loading plugins from: /Users/jdyer/.vagrant.d/plugins.json
 INFO environment: Loading plugin from JSON: berkshelf-vagrant
 INFO manager: Registered plugin: berkshelf
 INFO environment: Loading plugin from JSON: vagrant-aws
 INFO manager: Registered plugin: AWS
 INFO environment: Running hook: environment_load
 INFO environment: Initializing config...
 INFO loader: Set :default = "/Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/config/default.rb"
DEBUG loader: Populating proc cache for "/Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/config/default.rb"
DEBUG loader: Load procs for pathname: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/config/default.rb
 INFO loader: Set :home = #<Pathname:/Users/jdyer/.vagrant.d/Vagrantfile>
DEBUG loader: Populating proc cache for #<Pathname:/Users/jdyer/.vagrant.d/Vagrantfile>
DEBUG loader: Load procs for pathname: /Users/jdyer/.vagrant.d/Vagrantfile
 INFO loader: Set :root = #<Pathname:/Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server/Vagrantfile>
DEBUG loader: Populating proc cache for #<Pathname:/Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server/Vagrantfile>
DEBUG loader: Load procs for pathname: /Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server/Vagrantfile
 INFO loader: Loading configuration in order: [:default, :home, :root]
DEBUG loader: Loading from: default (evaluating)
DEBUG loader: Loading from: home (evaluating)
DEBUG loader: Loading from: root (evaluating)
DEBUG loader: Upgrading config from version 1 to 2
DEBUG loader: Upgrading config to version 2
DEBUG loader: Upgraded to version 2 with 0 warnings and 0 errors
DEBUG loader: Loading from: root (evaluating)
DEBUG provisioner: Provisioner defined: chef_solo
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG hosts: Host path search classes: [VagrantPlugins::HostWindows::Host, VagrantPlugins::HostOpenSUSE::Host, VagrantPlugins::HostArch::Host, VagrantPlugins::HostFedora::Host, VagrantPlugins::HostFreeBSD::Host, VagrantPlugins::HostGentoo::Host, VagrantPlugins::HostLinux::Host, VagrantPlugins::HostBSD::Host]
 INFO hosts: Host class: VagrantPlugins::HostBSD::Host
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000103a5f678>
 INFO cli: CLI: [] "up" ["--provider=aws"]
DEBUG cli: Invoking command class: VagrantPlugins::CommandUp::Command ["--provider=aws"]
DEBUG command: 'Up' each target VM...
DEBUG command: Getting target VMs for command. Arguments:
DEBUG command:  -- names: []
DEBUG command:  -- options: {:provider=>"aws"}
DEBUG command: Loading all machines...
 INFO command: Active machine found with name default. Using provider: aws
 INFO environment: Getting machine: default (aws)
 INFO environment: Uncached load of machine.
 INFO loader: Set :vm_default = []
 INFO loader: Loading configuration in order: [:default, :home, :root, :vm_default]
DEBUG loader: Loading from: default (cache)
DEBUG loader: Loading from: home (cache)
DEBUG loader: Loading from: root (cache)
DEBUG loader: Loading from: root (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
 INFO box_collection: Searching for box: VL-Cent58-64 (aws) in /Users/jdyer/.vagrant.d/boxes/VL-Cent58-64/aws/metadata.json
 INFO box_collection: Box not found: VL-Cent58-64 (aws)
 INFO machine: Initializing machine: default
 INFO machine:   - Provider: VagrantPlugins::AWS::Provider
 INFO machine:   - Box:
 INFO machine:   - Data dir: /Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server/.vagrant/machines/default/aws
 INFO command: With machine: default (AWS (i-ca08f2a6))
 INFO interface: info: Bringing machine 'default' up with 'aws' provider...
Bringing machine 'default' up with 'aws' provider...
 INFO machine: Calling action: up on provider AWS (i-ca08f2a6)
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x000001011bc388>
 INFO warden: Calling action: #<Proc:0x000001014e9e48@/Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/lib/vagrant/action/warden.rb:93 (lambda)>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::EnvSet:0x0000010146c8a8>
 INFO warden: Calling action: #<Berkshelf::Vagrant::Action::SetUI:0x0000010146c830>
 INFO warden: Calling action: #<Berkshelf::Vagrant::Action::LoadShelf:0x0000010146c808>
 INFO warden: Calling action: #<Berkshelf::Vagrant::Action::ConfigureChef:0x0000010146c7e0>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x000001014e9e20>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x000001014e9df8>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<Vagrant::Action::Builtin::Call:0x0000010161aa38>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000103c8cdb0>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::IsCreated:0x00000103cbb9d0>
 INFO machine: Calling action: read_state on provider AWS (i-ca08f2a6)
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000103b187e0>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x00000101593bf0>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x00000101593bc8>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadState:0x00000101482e00>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Warden:0x000001013e5ee8>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::MessageAlreadyCreated:0x000001013e5e70>
 INFO interface: info: The machine is already created.
[default] The machine is already created.
 INFO environment: Running hook: environment_unload
 INFO runner: Running action: #<Vagrant::Action::Builder:0x0000010132b908>
22:26:24 (development) [email protected] runtime_server 12.1 ? vagrant destroy --provider=aws
An invalid option was specified. The help for this command
is available below.

Usage: vagrant destroy [vm-name]

    -f, --force                      Destroy without confirmation.
    -h, --help                       Print this help
22:26:38 (development) [email protected] runtime_server 12.1 ? vagrant destroy --provider=aws -f  1 โ†ต
An invalid option was specified. The help for this command
is available below.

Usage: vagrant destroy [vm-name]

    -f, --force                      Destroy without confirmation.
    -h, --help                       Print this help
22:26:41 (development) [email protected] runtime_server 12.1 ? vagrant destroy -f                 1 โ†ต
[default] Terminating the instance...
22:26:54 (development) [email protected] runtime_server 12.1 ? VAGRANT_LOG=debug vagrant up --provider=aws
 INFO global: Vagrant version: 1.1.2
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/box/plugin.rb
 INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/destroy/plugin.rb
 INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/halt/plugin.rb
 INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/init/plugin.rb
 INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/package/plugin.rb
 INFO manager: Registered plugin: package command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/plugin/plugin.rb
 INFO manager: Registered plugin: plugin command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/provision/plugin.rb
 INFO manager: Registered plugin: provision command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/reload/plugin.rb
 INFO manager: Registered plugin: reload command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/resume/plugin.rb
 INFO manager: Registered plugin: resume command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/ssh/plugin.rb
 INFO manager: Registered plugin: ssh command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/ssh_config/plugin.rb
 INFO manager: Registered plugin: ssh-config command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/status/plugin.rb
 INFO manager: Registered plugin: status command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/suspend/plugin.rb
 INFO manager: Registered plugin: suspend command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/commands/up/plugin.rb
 INFO manager: Registered plugin: up command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/communicators/ssh/plugin.rb
 INFO manager: Registered plugin: ssh communiator
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/arch/plugin.rb
 INFO manager: Registered plugin: Arch guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/debian/plugin.rb
 INFO manager: Registered plugin: Debian guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/fedora/plugin.rb
 INFO manager: Registered plugin: Fedora guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/linux/plugin.rb
 INFO manager: Registered plugin: Linux guest.
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/openbsd/plugin.rb
 INFO manager: Registered plugin: OpenBSD guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/redhat/plugin.rb
 INFO manager: Registered plugin: RedHat guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/solaris/plugin.rb
 INFO manager: Registered plugin: Solaris guest.
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/suse/plugin.rb
 INFO manager: Registered plugin: SUSE guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/ubuntu/plugin.rb
 INFO manager: Registered plugin: Ubuntu guest
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/arch/plugin.rb
 INFO manager: Registered plugin: Arch host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/bsd/plugin.rb
 INFO manager: Registered plugin: BSD host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/fedora/plugin.rb
 INFO manager: Registered plugin: Fedora host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/linux/plugin.rb
 INFO manager: Registered plugin: Linux host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/opensuse/plugin.rb
 INFO manager: Registered plugin: OpenSUSE host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/hosts/windows/plugin.rb
 INFO manager: Registered plugin: Windows host
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/kernel_v1/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/kernel_v2/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/providers/virtualbox/plugin.rb
 INFO manager: Registered plugin: VirtualBox provider
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/provisioners/chef/plugin.rb
 INFO manager: Registered plugin: chef
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/provisioners/puppet/plugin.rb
 INFO manager: Registered plugin: puppet
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/provisioners/shell/plugin.rb
 INFO manager: Registered plugin: shell
 INFO vagrant: `vagrant` invoked: ["up", "--provider=aws"]
DEBUG vagrant: Creating Vagrant environment
 INFO environment: Environment initialized (#<Vagrant::Environment:0x00000102b04fc0>)
 INFO environment:   - cwd: /Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server
 INFO environment: Home path: /Users/jdyer/.vagrant.d
 INFO environment: Local data path: /Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server/.vagrant
DEBUG environment: Creating: /Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server/.vagrant
DEBUG environment: Loading plugins from: /Users/jdyer/.vagrant.d/plugins.json
 INFO environment: Loading plugin from JSON: berkshelf-vagrant
 INFO manager: Registered plugin: berkshelf
 INFO environment: Loading plugin from JSON: vagrant-aws
 INFO manager: Registered plugin: AWS
 INFO environment: Running hook: environment_load
 INFO environment: Initializing config...
 INFO loader: Set :default = "/Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/config/default.rb"
DEBUG loader: Populating proc cache for "/Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/config/default.rb"
DEBUG loader: Load procs for pathname: /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/config/default.rb
 INFO loader: Set :home = #<Pathname:/Users/jdyer/.vagrant.d/Vagrantfile>
DEBUG loader: Populating proc cache for #<Pathname:/Users/jdyer/.vagrant.d/Vagrantfile>
DEBUG loader: Load procs for pathname: /Users/jdyer/.vagrant.d/Vagrantfile
 INFO loader: Set :root = #<Pathname:/Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server/Vagrantfile>
DEBUG loader: Populating proc cache for #<Pathname:/Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server/Vagrantfile>
DEBUG loader: Load procs for pathname: /Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server/Vagrantfile
 INFO loader: Loading configuration in order: [:default, :home, :root]
DEBUG loader: Loading from: default (evaluating)
DEBUG loader: Loading from: home (evaluating)
DEBUG loader: Loading from: root (evaluating)
DEBUG loader: Upgrading config from version 1 to 2
DEBUG loader: Upgrading config to version 2
DEBUG loader: Upgraded to version 2 with 0 warnings and 0 errors
DEBUG loader: Loading from: root (evaluating)
DEBUG provisioner: Provisioner defined: chef_solo
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG hosts: Host path search classes: [VagrantPlugins::HostWindows::Host, VagrantPlugins::HostOpenSUSE::Host, VagrantPlugins::HostArch::Host, VagrantPlugins::HostFedora::Host, VagrantPlugins::HostFreeBSD::Host, VagrantPlugins::HostGentoo::Host, VagrantPlugins::HostLinux::Host, VagrantPlugins::HostBSD::Host]
 INFO hosts: Host class: VagrantPlugins::HostBSD::Host
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000102557050>
 INFO cli: CLI: [] "up" ["--provider=aws"]
DEBUG cli: Invoking command class: VagrantPlugins::CommandUp::Command ["--provider=aws"]
DEBUG command: 'Up' each target VM...
DEBUG command: Getting target VMs for command. Arguments:
DEBUG command:  -- names: []
DEBUG command:  -- options: {:provider=>"aws"}
DEBUG command: Loading all machines...
 INFO environment: Getting machine: default (aws)
 INFO environment: Uncached load of machine.
 INFO loader: Set :vm_default = []
 INFO loader: Loading configuration in order: [:default, :home, :root, :vm_default]
DEBUG loader: Loading from: default (cache)
DEBUG loader: Loading from: home (cache)
DEBUG loader: Loading from: root (cache)
DEBUG loader: Loading from: root (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
 INFO box_collection: Searching for box: VL-Cent58-64 (aws) in /Users/jdyer/.vagrant.d/boxes/VL-Cent58-64/aws/metadata.json
 INFO box_collection: Box not found: VL-Cent58-64 (aws)
 INFO machine: Initializing machine: default
 INFO machine:   - Provider: VagrantPlugins::AWS::Provider
 INFO machine:   - Box:
 INFO machine:   - Data dir: /Users/jdyer/Dropbox/Projects/deployment_models/functional-deployment-cookbooks/runtime_server/.vagrant/machines/default/aws
 INFO command: With machine: default (AWS (new))
 INFO interface: info: Bringing machine 'default' up with 'aws' provider...
Bringing machine 'default' up with 'aws' provider...
 INFO machine: Calling action: up on provider AWS (new)
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000102912320>
 INFO warden: Calling action: #<Proc:0x000001015f76a0@/Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/lib/vagrant/action/warden.rb:93 (lambda)>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::EnvSet:0x00000102d64018>
 INFO warden: Calling action: #<Berkshelf::Vagrant::Action::SetUI:0x00000102d6bf70>
 INFO warden: Calling action: #<Berkshelf::Vagrant::Action::LoadShelf:0x00000102d6bed0>
 INFO warden: Calling action: #<Berkshelf::Vagrant::Action::ConfigureChef:0x00000102d6bea8>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x000001015f7678>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x000001015f7650>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<Vagrant::Action::Builtin::Call:0x00000101535000>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x0000010231fd28>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::IsCreated:0x00000102327410>
 INFO machine: Calling action: read_state on provider AWS (new)
 INFO runner: Running action: #<Vagrant::Action::Builder:0x000001021015a0>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x0000010177f040>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x0000010177f018>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadState:0x00000101610e20>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Warden:0x00000102fd6080>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::TimedProvision:0x0000010172fec8>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::SyncFolders:0x00000102b5daa8>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::WarnNetworks:0x0000010299f7c0>
 INFO interface: warn: Warning! The AWS provider doesn't support any of the Vagrant
high-level network configurations (`config.vm.network`). They
will be silently ignored.
[default] Warning! The AWS provider doesn't support any of the Vagrant
high-level network configurations (`config.vm.network`). They
will be silently ignored.
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::RunInstance:0x0000010299f720>
 INFO interface: info: Launching an instance with the following settings...
[default] Launching an instance with the following settings...
 INFO interface: info:  -- Type: m1.medium
[default]  -- Type: m1.medium
 INFO interface: info:  -- AMI: ami-55ca433c
[default]  -- AMI: ami-55ca433c
 INFO interface: info:  -- Region: us-east-1
[default]  -- Region: us-east-1
 INFO interface: info:  -- Keypair: test_ssh_key
[default]  -- Keypair: test_ssh_key
 INFO interface: info: Waiting for instance to become "ready"...
[default] Waiting for instance to become "ready"...
 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded>
 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded>
 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded>
 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded>
 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded>
 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded>
 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded>
 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded>
 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded>
 INFO run_instance: Time to instance ready: 33.30335307121277
 INFO interface: info: Waiting for SSH to become available...
[default] Waiting for SSH to become available...
DEBUG ssh: Checking whether SSH is ready...
 INFO machine: Calling action: read_ssh_info on provider AWS (i-acf972cd)
 INFO runner: Running action: #<Vagrant::Action::Builder:0x00000101663580>
 INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x000001029965a8>
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x00000102996580>
 INFO connect_aws: Connecting to AWS...
 INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadSSHInfo:0x00000102f60da8>
DEBUG ssh: Checking key permissions: /Users/jdyer/.ssh/test_ssh_key.pem
 INFO ssh: Attempting SSH. Retries: 100. Timeout: 30
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Timeout::Error: execution expired>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<Errno::ECONNREFUSED: Connection refused - connect(2)>
 INFO ssh: Attempting to connect to SSH: ec2-184-73-59-180.compute-1.amazonaws.com:22
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: establishing connection to ec2-184-73-59-180.compute-1.amazonaws.com:22

DEBUG ssh: =

keep getting rsync error "The source and destination cannot both be remote."

Hi,

I am trying to provision a AWS box using below configuration through windows.


Vagrant.configure("2") do |config|
    config.vm.define :web do |web_config|
    web_config.vm.box = "dummy"
web_config.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"

web_config.vm.provider :aws do |aws|
    aws.access_key_id = ###
    aws.secret_access_key = ###
    aws.keypair_name = ###      
    aws.ssh_username = "ubuntu"
    aws.ssh_private_key_path = ###      
    aws.instance_type = "m1.small"
    aws.ami = "ami-7914170d"            
end
web_config.ssh.username = "ubuntu"  
  end

But there seems to be an issue with rsync. I keep getting this error:

Host path: C:/Project/vagrant/
Guest path: /vagrant
Error: The source and destination cannot both be remote.
rsync error: syntax or usage error (code 1) at main.c(1135) [receiver=3.0.6]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.