Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Deployment

gardner edited this page Apr 25, 2013 · 2 revisions

Overview

  • 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.

Install Xcode

You can download it here

Install Chef

gem update --system
gem install chef net-ssh net-ssh-multi fog highline knife-ec2 knife-github-cookbooks --no-rdoc --no-ri

Configure knife

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

    EC2 sub-command

    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

Clone this wiki locally