chef - How do I install the knife-ec2 plugin? -


osx, 10.9.2:

$ ruby -v ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13] $ knife -v chef: 11.10.4 

when run:

$ knife ec2 server list 

i get:

fatal: cannot find sub command for: 'ec2 server list' ec2 commands moved plugins in chef 0.10 can install plugin `(sudo) gem install knife-ec2 

i have gem installed:

sudo gem install knife-ec2 

runs without error. , gem list shows installed:

$ sudo gem list|grep knife-ec2  knife-ec2 (0.8.0) 

the gem appears correctly installed here:

ls /library/ruby/gems/2.0.0/gems/knife-ec2-0.8.0/ ... 

/usr/bin/knife on own runs fine. quite has knife looking plugins, unclear.

i had or similar problem when installed chefdk after i'd had chef/knife/knife-ec2 installed via gems (in attempt vagrant-berkshelf working, if you're wondering).

what found when installing chefdk embedded chef ruby used knife binary in path, instead of system ruby, have install gems chef embedded ruby.

on osx did this:

/opt/chefdk/embedded/bin/gem install knife-ec2 

edit: looks there's chef command already:

chef gem install knife-ec2 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -