Ends in

AWS Cloud Practitioner Sale - Get a Chance to Win FREE Access to our new DEA Practice Exams

Guided Lab: Creating an Amazon Machine Image (AMI) from an EBS-backed EC2 instance


An Amazon Machine Image (AMI) is a blueprint for an EC2 instance, containing all the information needed to launch an instance with your chosen configuration. This includes the operating system, custom settings, and installed applications. You can create an AMI from an existing instance, which allows you to quickly launch multiple new instances that have the same setup.

In AWS, you get access to basic AMIs. These come with different operating systems and software packages you need to get started. You can launch an EC2 instance from a basic AMI and customize it by setting up the configurations you need or installing specific software. Then, you can create a new AMI from this modified version. This way, you save all your customizations, giving you a personalized AMI for your future use.

During the creation of an AMI, Amazon EC2 takes snapshots of the instance’s root volume and any other Amazon Elastic Block Store (EBS) volumes that are attached to the instance. This process ensures that both the configuration of the instance and the state of all attached EBS volumes are replicated. Keep in mind that there are storage charges for the snapshots until you deregister the AMI and delete those snapshots.

In this lab, you will learn how to create an Amazon Machine Image (AMI) from an EBS-backed EC2 instance. These hands-on labs will help you understand how to incorporate AMIs into your projects without starting from scratch.


Before starting this lab, it is expected that you have prior experience in creating EC2 instances and are well-versed with their basic components. In case you encounter any gaps in your knowledge, we recommend taking the following labs to gain sufficient knowledge:

  • Creating an Amazon EC2 instance (Linux)
  • Setting up a Web server on an EC2 instance Setting up a Web server on an EC2 instance


In this lab, you will:

  • Have a basic understanding of AMI
  • Learn how to create an AMI
  • Learn how to deregister an AMI
  • Learn how to create an EC2 instance from a custom AMI