Amazon Machine Image
An Amazon Machine Image (AMI) is a special type of virtual appliance that is used to create a virtual machine within the Amazon Elastic Compute Cloud (EC2). It is the basic building block used to start services that run on EC2.
Overview
The main part of an AMI is a read-only filesystem image. It includes an operating system (such as Linux, Unix, or Windows) and any extra software needed to run a service or part of one. An AMI also has a template for the root volume. It has launch permissions that decide which AWS accounts can use it to start computers. It also has a block device mapping, which sets which volumes attach when a computer starts. The AMI's filesystem is compressed, encrypted, signed, and split into 10 MB pieces. These pieces are uploaded into Amazon S3 for storage.
Current AMIs are made for hardware virtualized machines (HVM). In these, the operating system is installed much like it would be on a real computer. Older paravirtualized virtual machines (PV) are still available. An AMI for these did not include a kernel image. It only had a pointer to the default kernel ID. That kernel could be picked from an approved list of kernels kept by Amazon and its partners (such as Red Hat, Canonical, and Microsoft). Users could choose a kernel other than the default when starting a PVM AMI.
Operating systems
When EC2 started in August 2006, it offered Linux. Later, Sun Microsystems' OpenSolaris and Solaris Express Community Edition were added. In October 2008, EC2 added Windows Server 2003 and Windows Server 2008 to the operating systems it offered. As of December 2010, it has also been reported to run FreeBSD. In March 2011, NetBSD AMIs became available. In November 2012, support for Windows Server 2012 was added.
Amazon has its own Linux system. It works mostly the same way as Red Hat Enterprise Linux. It has been in use since September 2011 and was being developed since 2010. The final release of the original Amazon Linux is version 2018.03. It uses version 4.14 of the Linux kernel. Amazon Linux 2 changed its startup system from SysVinit to systemd. It was announced in June 2018 and is updated regularly. The next version, Amazon Linux 2023, came out with a new release schedule of every two years. It includes several hardening features that make the kernel safer. It also lets the kernel be patched while it is running.
Types of images
There are three types of Amazon Machine Images. A public image can be used by anyone.
A paid image costs money. It is registered with Amazon DevPay. People who sign up for it can use it. The developer can add their own charge on top of Amazon's usage fees. They can also choose to add a monthly fee. A shared image is private. Only the Amazon EC2 users that the developer allows can use it.

Quiz time!
4 questions about Amazon Machine Image
What is an Amazon Machine Image (AMI) used to create?
Keep exploring
This article is a child-friendly adaptation of the Wikipedia article on Amazon Machine Image, available under CC BY-SA 4.0.