Amazon Machine Image (AMI) is the machine image used by EC2. An AMI is a template that contains configuration for operating systems and software packages. We can start EC2 instances from preexisting or personalized AMIs. AWS offers a large number of public AMIs that can be used for free.
Generally, there are two types of AMIs one is EBS-backed AMI (Elastic Block Storage-backed AMI) and the other is instance store-backed AMI. In this recipe, we will first outline steps to create an instance store-backed AMI and briefly introduce how to create an EBS-backed AMI.
Before getting started, we assume that you have successfully registered with AWS. And, we also assume that a client machine has been configured properly to connect to AWS.
Log in to the local machine and install the
MAKEDEV
utility using the following command:
sudo yum install -y MAKEDEV
Install the Amazon AMI tools using the following command:
sudo rpm -ivh http://s3.amazonaws.com...