4

I was able to make knife access AWS by following: http://www.agileweboperations.com/amazon-ec2-instances-with-opscode-chef-using-knife

Now, I get a knife command almost working:

$ knife ec2 server create -r "role[base]" -I ami-c1aaabb5  -f t1.micro -S knife -i ~/.ssh/knife.pem --ssh-user ubuntu --region eu-west-1 -Z eu-west-1a
Instance ID: i-xxxxxx
Flavor: m1.small
Image: ami-399ca94d
Region: eu-west-1
Availability Zone: eu-west-1a
Security Groups: default
Tags: {"Name"=>"i-xxxxxx"}
SSH Key: knife

Waiting for server............................
Public DNS Name: ec2-xxxxxx.eu-west-1.compute.amazonaws.com
Public IP Address: yy.yy.yy.yy
Private DNS Name: ip-xxxxxxx.eu-west-1.compute.internal
Private IP Address: zz.zz.zz.zz

Waiting for sshd...................................

But now I get a timeout. Any ideas/suggestions how to create an EC2 instance ready for Chef provisioning?

Thanks!

3
  • 1
    Does your default security group permit SSH traffic?
    – EEAA
    Commented Jan 29, 2013 at 13:56
  • right! there was the problem. I did allow SSH traffic only for another security group... now, provisioning is working! if you post your answer below, I accept it
    – poseid
    Commented Jan 29, 2013 at 15:06
  • Ahh, awesome. I've posted an answer...
    – EEAA
    Commented Jan 29, 2013 at 16:35

1 Answer 1

9

My guess would be that your default security group is not allowing SSH traffic.

1
  • 1
    @EEAA... thank you very much. this helped just now. :) Commented Jul 22, 2013 at 8:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .