User Tools

Site Tools


guides:opscode_chef:amazon_ec2_amis_with_chef

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

guides:opscode_chef:amazon_ec2_amis_with_chef [2010/09/14 10:50] (current)
michaelc created
Line 1: Line 1:
 +====== Amazon EC2 AMI's with Chef ======
 +
 +Find the latest Ubunutu + Chef AMI's here:
 +
 +http://​wiki.opscode.com/​display/​chef/​Amazon+EC2+AMIs+with+Chef
 +
 +
 +Currently released in the us-east EC2 region only:
 +
 +  * ami-f0e20899 (Ubuntu 10.04, 32bit, Chef 0.9.8)
 +  * ami-fae20893 (Ubuntu 10.04, 64bit, Chef 0.9.8)
 +
 +Using knife to generate the instance data:
 +
 +  $ knife ec2 instance data role[base]
 +  ​
 +Multiple entries for the run_list by separating them by spaces. These can be roles or recipes:
 +
 +  $ knife ec2 instance data '​role[base]'​ '​role[webserver]'​ '​recipe[zsh]'​
 +
 +
 +Redirecting the instance data and launching with ec2 tools
 +
 +  knife ec2 instance data role[base] role[webserver] > /​tmp/​webserver.json
 +  ​
 +  ec2-run-instances ami-XXXXXXXX -f /​tmp/​webserver.json \
 +    --instance-type m1.small --region us-east-1 --key ${EC2_KEYPAIR_US_EAST_1}
  
guides/opscode_chef/amazon_ec2_amis_with_chef.txt · Last modified: 2010/09/14 10:50 by michaelc