なお、Chef serverを構築していると、Chef serverと連携してChefの実行までできるようですが、今回は Chef solo 環境で knife ec2 コマンドを使用するところまでです。
<ahref="http://www.flickr.com/photos/42332031@N02/9049601610/"onclick="__gaTracker('send', 'event', 'outbound-article', 'http://www.flickr.com/photos/42332031@N02/9049601610/', '');"title="http://aws.amazon.com/jp/ by kazu634, on Flickr"><imgclass="aligncenter"alt="http://aws.amazon.com/jp/"src="http://farm4.staticflickr.com/3822/9049601610_046fff34ed.jpg"width="226"height="500"/></a>
<!--more-->
## やりたいこと
knifeコマンドのインターフェースを用いて AWS EC2 インスタンスを作成します。Chef Server は無いので、単純にインスタンスを作るところまで。
## Amazon EC2 CLI Toolsのセットアップ
### Amazon EC2 CLI Toolsのダウンロード
<ahref="http://www.amazon.com/gp/redirect.html/ref=aws_rc_ec2tools?location=http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip&token=A80325AA4DAB186C80828ED5138633E3F49160D9"onclick="__gaTracker('send', 'event', 'outbound-article', 'http://www.amazon.com/gp/redirect.html/ref=aws_rc_ec2tools?location=http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip&token=A80325AA4DAB186C80828ED5138633E3F49160D9', 'Amazon EC2 API Tools');"title="Amazon EC2 API Tools"target="_blank">Amazon EC2 API Tools</a>から、Amazon EC2 CLI Toolsをダウンロードします。ダウンロードしたら解答します:
<ahref="http://www.flickr.com/photos/42332031@N02/9058089732/"onclick="__gaTracker('send', 'event', 'outbound-article', 'http://www.flickr.com/photos/42332031@N02/9058089732/', '');"title="Amazon Web Services by kazu634, on Flickr"><imgclass="aligncenter"alt="Amazon Web Services"src="http://farm3.staticflickr.com/2857/9058089732_3d97a171a5.jpg"width="500"height="272"/></a>
*<ahref="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SettingUp_CommandLine.html"onclick="__gaTracker('send', 'event', 'outbound-article', 'http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SettingUp_CommandLine.html', 'Setting Up the Amazon EC2 Command Line Interface Tools on Linux/UNIX');"title="Setting Up the Amazon EC2 Command Line Interface Tools on Linux/UNIX"target="_blank">Setting Up the Amazon EC2 Command Line Interface Tools on Linux/UNIX</a>
*<ahref="http://www.captnswing.net/2013/01/from-vagrant-to-ec2-with-knife-solo.html"onclick="__gaTracker('send', 'event', 'outbound-article', 'http://www.captnswing.net/2013/01/from-vagrant-to-ec2-with-knife-solo.html', 'From Vagrant to EC2 with knife-solo');"title="From Vagrant to EC2 with knife-solo"target="_blank">From Vagrant to EC2 with knife-solo</a>