Safekipedia

Amazon Machine Image

Discoverer · ages 10+Adapted from Wikipedia

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 serves as the basic unit of deployment for services delivered using 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 deliver a service or part of one. An AMI also has a template for the root volume, launch permissions that control which AWS accounts can use it to start instances, and a block device mapping that sets which volumes attach when an instance launches. The AMI's filesystem is compressed, encrypted, signed, and split into 10 MB chunks, which are uploaded into Amazon S3 for storage.

Current AMIs are made for hardware virtualized machines (HVM), where the operating system is installed as it would be on real hardware. Older paravirtualized virtual machines (PV) are still available. An AMI for these did not include a kernel image, only a pointer to the default kernel id. That kernel could be chosen from an approved list of safe kernels maintained by Amazon and its partners (such as Red Hat, Canonical, and Microsoft). Users could choose a kernel other than the default when booting a PVM AMI.

Operating systems

When EC2 launched 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 list of available operating systems. As of December 2010, it has also been reported to run FreeBSD, and in March 2011, NetBSD AMIs became available. In November 2012, support for Windows Server 2012 was added.

Amazon has its own Linux system that works mostly the same way as Red Hat Enterprise Linux. It has been in production since September 2011 and in development since 2010. The final release of the original Amazon Linux is version 2018.03, and 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, launched along with a new release schedule of every two years. It includes various hardening features that make the kernel safer, and it also allows the kernel to 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 and is registered with Amazon DevPay. Anyone who subscribes to it can use it. DevPay lets developers add their own charge on top of Amazon's usage fees, and they can also choose to add a monthly subscription fee. A shared image is private. Only Amazon EC2 users whom the developer allows can use it.

Quiz time!

5 questions about Amazon Machine Image

Question 1 of 5

What is the main part of an Amazon Machine Image (AMI)?

Keep exploring

This article is a child-friendly adaptation of the Wikipedia article on Amazon Machine Image, available under CC BY-SA 4.0.