I was trying to execute knife command to create ec2 server however i was getting error.
here is the command that i was executing:
$ knife ec2 server create -G default -I ami-7000f019 -f m1.small -S
java-quick-start -i ~/.ssh/java-quick-start.pem -x ubuntu -r
'role[base],role[dbapp_database_master],role[dbapp],recipe[dbapp::db_bootstrap],role[dbapp_load_balancer]'
this is the error i was getting:
FATAL: Cannot find sub command for: 'ec2 server create -G default -I ami-7000f019 -f m1.small -S java-quick-start -i /home/pankaj/.ssh/java-quick-start.pem -x ubuntu -r role[base],role[dbapp_database_master],role[dbapp],recipe[dbapp::db_bootstrap],role[dbapp_load_balancer]'
The ec2 commands were moved to plugins in Chef 0.10
You can install the plugin with `(sudo) gem install knife-ec2
I continued getting this error even when i installed knife-ec2 using command
gem install knife-ec2
finally it worked when i executed following:
$ /opt/chef/embedded/bin/gem install knife-ec2