This repository has been archived by the owner on Aug 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment
gardner edited this page Apr 25, 2013
·
2 revisions
- You will need to get the Amazon Access Key from https://www.passpack.com/
- We use Opscode Chef to spin up new Amazon ec2 instances and deploy ChallengeFinder.
You can download it here
gem update --system
gem install chef net-ssh net-ssh-multi fog highline knife-ec2 knife-github-cookbooks --no-rdoc --no-ri
Add these lines to your ~/.bash_profile
export AWS_ACCESS_KEY_ID=THE ACCESS KEY FROM PASSPACK.COM
export AWS_SECRET_ACCESS_KEY=THE SECRET KEY FROM PASSPACK.COM
export EC2_AVAILABILITY_ZONE=us-west-1a
export EC2_REGION=us-west-1
Don't forget to source it:
source ~/.bash_profile
knife config:
-
You will need to generate new keys to use with Opscode Chef.
-
Download the key file from this page
-
Download the example knife.rb
mkdir ~/.chef cat > ~/.chef/knife.rb << EOF
knife[:availability_zone] = "#{ENV['EC2_AVAILABILITY_ZONE']}" knife[:aws_access_key_id] = "#{ENV['AWS_ACCESS_KEY_ID']}" knife[:aws_secret_access_key] = "#{ENV['AWS_SECRET_ACCESS_KEY']}" knife[:chef_mode] = "solo" knife[:region] = "#{ENV['EC2_REGION']}" EOF