This is the official Opscode Knife plugin for Amazon EC2. This plugin gives the knife command line program the ability to create, bootstrap, and manage EC2 inst ances.
This plugin is distributed as a Ruby Gem. To install it, run:
gem install knife-ec2
Depending on your system, you may need to run this command as root.
Knife EC2 can be configured with your AWS credentials, favored availability zone and more. Your configuration is specified in your knife.rb file, inside the ‘knife` Hash. The following settings are available:
-
availability_zone
-
aws_ssh_key_id
-
aws_access_key_id
-
aws_secret_access_key
-
region
In ~/.chef/knife.rb:
knife :aws_access_key_id => "AAAAAAAAAAAAAAAAAAAAAA", :aws_secret_access_key => "Mjc0MzIyMDE5Mjk1MjcxNjczNDYxNjczMzg5Nzg5", :aws_ssh_key_id => "mycorp-ssh-key"
TODO