AWS EC2 bootstrapping using Chef

AWS is the pioneer in providing IaaS. Elastic cloud computing (EC2) is the most popular and widely adopted Infrastructure as a service.

Here, we are going to see step-by-step procedures to bootstrap AWS EC2 instances. Let's start with the first step to set up a workstation.

Preparing your workstation

First, we need to prepare your workstation to install the knife-ec2 plugin, so that you can use the knife command on AWS instances. Here, we are considering to install the Ubuntu operating system on your workstation.

If Ruby is not installed on your workstation, kindly go ahead with the Ruby installation first:

sudo apt-get update
sudo apt-get install ruby1.8-dev ruby1.8ri1.8rdoc1.8irb1.8
sudo apt-get install libreadline-ruby1.8libruby1.8libopenssl-ruby ...

Get Learning Chef now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.