I’m attempting to bootstrap an EC2 instance and following the guide here:
http://wiki.opscode.com/display/chef/EC2+Bootstrap+Fast+Start+Guide#EC2BootstrapFastStartGuide-Step2:ConfigureAWSsettingsandtheknife.rbfile
One thing I’m a bit confused with is it says;
Add your AWS Cloud Credentials to the bottom of your knife.rb:
knife[:aws_access_key_id] = "Your AWS Access Key"
knife[:aws_secret_access_key] = “Your AWS Secret Access Key”
Now, I’ve done a search of my file system and I can see a number of knife.rb
files;
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/spec/support/shared/functional/knife.rb
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application/knife.rb
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/chef_fs/knife.rb
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/knife.rb
So my question is simply which one do I add the aws secret keys to?
Thanks in advance
John
That is in your local workstation.
knife looks for knife.rb in different locations.
- In your project folder inside .chef/knife.rb
- In home dir ~/.chef/knife.rb
- In /etc/chef/knife.rb
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.com (http://nepalonrails.tumblr.com)
http://funsole.com
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Saturday, March 16, 2013 at 10:10 PM, jeg1972@gmail.com wrote:
I'm attempting to bootstrap an EC2 instance and following the guide here:
http://wiki.opscode.com/display/chef/EC2+Bootstrap+Fast+Start+Guide#EC2BootstrapFastStartGuide-Step2:ConfigureAWSsettingsandtheknife.rbfile
One thing I'm a bit confused with is it says;
Add your AWS Cloud Credentials to the bottom of your knife.rb:
knife[:aws_access_key_id] = "Your AWS Access Key"
knife[:aws_secret_access_key] = "Your AWS Secret Access Key"
Now, I've done a search of my file system and I can see a number of knife.rb
files;
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/spec/support/shared/functional/knife.rb
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application/knife.rb
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/chef_fs/knife.rb
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/knife.rb
So my question is simply which one do I add the aws secret keys to?
Thanks in advance
John
Its the knife.rb file that was a result of executing knife configure on
your local workstation. Its the same knife.rb where (hopefuly) you
configured your cookbook path.
On Saturday, March 16, 2013, wrote:
I'm attempting to bootstrap an EC2 instance and following the guide here:
http://wiki.opscode.com/display/chef/EC2+Bootstrap+Fast+Start+Guide#EC2BootstrapFastStartGuide-Step2:ConfigureAWSsettingsandtheknife.rbfile
One thing I'm a bit confused with is it says;
Add your AWS Cloud Credentials to the bottom of your knife.rb:
knife[:aws_access_key_id] = "Your AWS Access Key"
knife[:aws_secret_access_key] = "Your AWS Secret Access Key"
Now, I've done a search of my file system and I can see a number of
knife.rb
files;
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/spec/support/shared/functional/knife.rb
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application/knife.rb
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/chef_fs/knife.rb
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/knife.rb
So my question is simply which one do I add the aws secret keys to?
Thanks in advance
John
--
Elvin Abordo
Mobile: (845) 475-8744