Skip to content
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.

Commit

Permalink
Map knife-ec2 settings to environment variables
Browse files Browse the repository at this point in the history
Sam Kottler committed Mar 23, 2014
1 parent 14e0d28 commit 453b199
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .chef/knife.rb
Original file line number Diff line number Diff line change
@@ -13,3 +13,7 @@
cache_type 'BasicFile'
cache_options( :path => "#{ENV['HOME']}/.chef/checksums" )
cookbook_path ["#{current_dir}/../cookbooks"]

# Provision new instances with knife-ec2
knife[:aws_access_key_id] = ENV['RUBYGEMS_AWS_ACCESS_KEY_ID']
knife[:aws_secret_access_key] = ENV['RUBYGEMS_AWS_SECRET_KEY_ID']

0 comments on commit 453b199

Please sign in to comment.