Linux > Virtualization

Steps to create custom AMI in AWS

(1/1)

aravindm:
Amazon Machine Image (AMI) gives the information required to launch an instance, which is a virtual server in the cloud. There are multiple AMI available within the AWS, But what if we want to create custom AMI in AWS.

The following are the main reasons to create custom AMI in AWS:


* You need pre-bundle packages instead of installing them after the instance boots.
* You need to control the timing of package updates to provide a consistent base image for your layer.
* You need instances—LOAD-BASED instances in particular—to boot as quickly as possible.
Once  you are ready with your customised EC2 instance. We can create custom AMI in AWS so that it can be used to launch as many required instances based on requirement. As an example we are going to create custom AMI in AWS for our web server.

Steps to create custom AMI in AWS:

     1. Login to AWS console
     2. Goto EC2 dashboard and select the instance for which you want to create custom AMI.
     3. Then goto Action button and select Image-> Create image as below:



     4. In the next pop-up window system will ask for “Image name” and “Image description“. Also you can change the size of root volume if you want to change however in our case we are keeping the same as below. Click the “Create Image” button.



How to check created Custom AMI.

     1. To Check the status of AMI creation process Goto Images–>AMIs. You will see pending status as below for some time.



     2. Once the process is completed status will become as “Available”:



     3.Also in the snapshot within in the EBS (ELASTIC BLOCK STORE), you can able to see the snapshot being created for the AMI image created by us.

Navigation

[0] Message Index

Go to full version