How to launch an amazon ec2 instance inside VPC using Chef?


This is a question primarily about Chef. When looking into controlling nodes inside Amazon VPC with Chef, I run into some difficulties, mainly that a node that does not have an external IP address is not easily reachable by chef.

I went through the basic tutorial for scenario #2

However, this this times out:

What am I doing wrong?


The solution was to setup a tunnel and tunnel the ssh on some port of a publicly visible computer to all the other computers in the cloud. So my load balancer serves http traffic on socket 80, is accessible via socket 22, and uses sockets 2222, 2223, 2224, … to tunnel ssh to non-public cloud instances. On load balancer (or any public instance) run:

for example:

Leave a Reply