Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Chef EC2 tutorial post
name "appserver"
description "An application server"
git clone git://
cp USERNAME.pem ORGANIZATION-validator.pem knife.rb .chef
knife ec2 server create "role[appserver]" --image ami-f0e20899 \
--groups chef --ssh-user ubuntu --ssh-key my-key
knife cookbook site vendor apache2
gem install chef net-ssh net-ssh-multi fog highline
knife[:aws_access_key_id] = "Your AWS Access Key"
knife[:aws_secret_access_key] = "Your AWS Secret Access Key"
knife cookbook upload apache2
knife role from file roles/appserver.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment