Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS EC2 - what is the difference between Amazon Linux AMIs

When launching a new EC2 instance, I can select between 2 different Amazon Linux images:

  1. Amazon Linux 2 AMI (HVM), SSD Volume Type
  2. Amazon Linux AMI 2018.03.0 (HVM), SSD Volume Type

What is the difference?

enter image description here

like image 366
nagy.zsolt.hun Avatar asked Dec 24 '18 20:12

nagy.zsolt.hun


People also ask

What is the difference between EC2 and AMI?

The EC2 is used for creating the virtual server instance. The AMI is the EC2 virtual machines image. ECS provides container services such as docker and the AWS lambda is used to run the code without a server.

What is the Amazon Linux AMI?

The Amazon Linux AMI is a supported and maintained Linux image provided by Amazon Web Services for use on Amazon Elastic Compute Cloud (Amazon EC2). It is designed to provide a stable, secure, and high performance execution environment for applications running on Amazon EC2.

What is EC2 AMI in AWS?

An Amazon Machine Image (AMI) is a master image for the creation of virtual servers -- known as EC2 instances -- in the Amazon Web Services (AWS) environment. The machine images are like templates that are configured with an operating system and other software that determine the user's operating environment.

What are the different types of AMI in AWS?

All AMIs are categorized as either backed by Amazon EBS or backed by instance store. Amazon EBS-backed AMI – The root device for an instance launched from the AMI is an Amazon Elastic Block Store (Amazon EBS) volume created from an Amazon EBS snapshot.


1 Answers

The first option is your image is a more stripped down/bare bones Linux image while the second includes commonly used packages/tools that are used when creating hosted services (such as AWS command line tools and Ruby).

I have an Amazon Linux 2 AMI (HVM), SSD Volume Type and you can see that extra packages like java and ruby are not installed.

enter image description here

like image 85
Padawan Avatar answered Oct 13 '22 13:10

Padawan