Skip to content

Instantly share code, notes, and snippets.

@crystalneth
Created February 20, 2011 01:24
Show Gist options
  • Select an option

  • Save crystalneth/835583 to your computer and use it in GitHub Desktop.

Select an option

Save crystalneth/835583 to your computer and use it in GitHub Desktop.
UPDATE: More info - I printed the config from within knife:
{:flavor=>"m1.small", :security_groups=>["default"], :availability_zone=>"us-east-1b", :ssh_user=>"ubuntu", :region=>"us-east-1", :distro=>"ubuntu10.04-gems", :template_file=>false, :editor=>nil, :format=>"json", :ssh_key_name=>"test-keypair", :image=>"ami-88f504e1", :identity_file=>"/Users/alex/.ssh/test-keypair.rsa", :log_level=>:debug, :config_file=>"/Users/alex/Development/chef/rails-quick-start/.chef/knife.rb"}
OUTPUT:
173-153-55-94:rails-quick-start alex$ knife ec2 server create 'role[production]' 'role[base]' 'role[radiant_database_master]' 'role[radiant]' 'role[radiant_run_migrations]' 'recipe[radiant::db_bootstrap]' -S rails-quick-start -x ubuntu -G default -i ami-88f504e1 -f m1.small -I ~/.ssh/test-keypair.rsa -l debug
DEBUG: Using configuration from /Users/alex/Development/chef/rails-quick-start/.chef/knife.rb
[WARN] Fog::AWS::EC2#new is deprecated, use Fog::AWS::Compute#new instead (/Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/chef-0.9.12/lib/chef/knife/ec2_server_create.rb:145:in `run')
[WARN] Fog::AWS::Compute.new is deprecated, use Fog::Compute.new(:provider => 'AWS') instead (/Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/fog-0.5.3/lib/fog/core/service.rb:58:in `new')
/Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/excon-0.5.5/lib/excon/connection.rb:134:in `request': InternalError => Request could not be executed due to an internal service error (Fog::Service::Error)
from /Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/fog-0.5.3/lib/fog/core/connection.rb:20:in `request'
from /Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/fog-0.5.3/lib/fog/compute/aws.rb:246:in `request'
from /Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/fog-0.5.3/lib/fog/compute/requests/aws/run_instances.rb:106:in `run_instances'
from /Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/fog-0.5.3/lib/fog/compute/models/aws/server.rb:147:in `save'
from /Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/fog-0.5.3/lib/fog/core/collection.rb:50:in `create'
from /Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/chef-0.9.12/lib/chef/knife/ec2_server_create.rb:151:in `run'
from /Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/chef-0.9.12/lib/chef/knife.rb:127:in `run'
from /Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/chef-0.9.12/lib/chef/application/knife.rb:121:in `run'
from /Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/chef-0.9.12/bin/knife:25:in `<top (required)>'
from /Users/alex/.rvm/gems/ruby-1.9.2-p0/bin/knife:19:in `load'
from /Users/alex/.rvm/gems/ruby-1.9.2-p0/bin/knife:19:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment