Hey guys,

I want to create a hybrid development environment using local VMs and one 
node on EC2.

We have hit the memory limit of what we can run locally in Vagrant with our 
workstations.  I am looking to break off a subset of the code (a service) 
and provision it to EC2.   

Ideally, I would like to build a hybrid set up with the three VMs we have 
now running locally (on VirtualBox) and a fourth node, configured in the 
same Vagrantfile, running on AWS.  For extra credit, I would like to use 
Consul to abstract away the EC2 IP for the three local nodes when they make 
RESTful API requests to the fourth box (service).

Essentially I want to build a box with one service on it, throw it on the 
cloud, and let the three VMs access it via the service's API.

Can I do this?  I have spent some time with the vagrant-aws 
<https://github.com/mitchellh/vagrant-aws> plugin and looking over the 
official docs.  I see how to build a Vagrantfile that can deploy all nodes 
to AWS (using *vagrant up --provider=aws*) or all nodes to Virtualbox.  But 
no examples of how to run a hybrid setup.  I can't find anything on 
StackOverflow or in the official Vagrant docs.

Is this a supported use case?  If so, what does the Vagrantfile need to 
look like?  

For example, I build and deployed the following using the vagrant-aws docs:

  config.vm.box = "dummy"
>   config.vm.provider :aws do |aws, override|
>     aws.access_key_id = ENV['AWS_ACCESS_KEY']
>     aws.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
>     aws.keypair_name = "korrelate2012"
>     aws.ami = "ami-7747d01e"
>     override.ssh.username = "ubuntu"
>     override.ssh.private_key_path = "~/.ssh/test.pem"
>   end


How could I integrate that into a Vagrantfile defining three local VMs?   

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/a269348e-4404-4f5a-a683-b636efcaec01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to