Create Amazon Machine Images (AMIs) from EC2 Instances: An Easy Guide

Arish AhmadArish Ahmad
1 min read

An Amazon Machine Image (AMI) is an image provided by AWS that provides the information required to launch an instance. You must specify an AMI when you launch an instance. You can launch multiple instances from a single AMI when you require multiple instances with the same configuration. You can use different AMIs to launch instances when you require instances with different configurations.

Steps to Create an AMI

  1. Create an EC2 instance. You can check out an AWS EC2 Instance with Windows or an AWS EC2 Instance with Linux.

  2. Now select the instance and click on Actions.

  3. Select Image and Templates.

  4. Choose Create Image.

  5. Write down a suitable name for this image.

  6. Scroll down and click Create Image.

  7. Select AMIs under Images from the left panel.

  8. Wait until the image of status is not Available.

    NOTE: Do not terminate the instance before the image is created; otherwise, the image will not be generated. Once the image status is available, you can terminate the instance.

  9. Select this image, and go to Actions.

  10. Choose Deregister AMI and again Deregister AMI to delete the AMI.

  11. Now Terminate the instance.

0
Subscribe to my newsletter

Read articles from Arish Ahmad directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Arish Ahmad
Arish Ahmad

Final-year BTech student specializing in software development. Completed a Flutter internship and amassed three years of project experience, crafting Threads clone, Stream Arbiter, Ticketify, and Google Docs. Proficient in C++, having successfully solved 250+ LeetCode questions.