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.

Answer from Padawan on Stack Overflow
🌐
Amazon Web Services
aws.amazon.com › compute › amazon linux 2 › faqs
Amazon Linux 2 FAQs
3 weeks ago - Amazon Linux 2 is an Amazon Linux operating system that provides modern application environment with the latest enhancements from the Linux community and offers long-term support. In addition to Amazon Machine Images (AMI) and container image formats, Amazon Linux 2 is available as a virtual ...
People also ask

Optimized performance

Amazon Linux 2 includes support for the latest Amazon Elastic Compute Cloud (Amazon EC2) instance capabilities and is tuned for enhanced performance. It includes packages that help ease integration with other AWS services.

🌐
aws.amazon.com
aws.amazon.com › products › compute › amazon linux 2
Amazon Linux 2
Enhanced developer productivity

Amazon Linux 2 is offered as a virtual machine and container image for on-premises development and testing. Developers can speed up their application development by building, testing, and integrating on the same Linux distribution that is used in their production environment.

🌐
aws.amazon.com
aws.amazon.com › products › compute › amazon linux 2
Amazon Linux 2
Large partner network

Amazon Linux 2 has a rapidly growing community of AWS Partners that includes independent software vendors (ISVs). You can install and run many popular partner applications.

🌐
aws.amazon.com
aws.amazon.com › products › compute › amazon linux 2
Amazon Linux 2
🌐
Reddit
reddit.com › r/aws › amazon linux ami 2018.03.0 or amazon linux 2 ami
r/aws on Reddit: Amazon Linux AMI 2018.03.0 or Amazon Linux 2 AMI
August 15, 2018 -

Reddit's decision to charge for API access has shown that the company is more interested in making money than in providing a good user experience. The changes will force many popular third-party apps to shut down, which will inconvenience millions of users. Reddit's actions have also alienated many of its moderators, who rely on third-party apps to manage their communities.

Top answer
1 of 5
19
I find myself referring to Michael Wittig's blog post on Migrating to Amazon Linux 2 quite often. He briefly talks about: long term support SysVinit (the old) vs. systemd (the new) journald and the changes to the log files starting and stopping services the lack of EPEL and Amazon's replacement some agents and services were renamed, potentially breaking scripts ruby, netcat (nc) and cnf-init don't work out of the box there are no NAT and ECS optimized Amazon Linux 2 images. In general, I feel... if you have a relatively short development cycle and you need to set up your website (or whatever) soon, stick with Amazon Linux 1 aka 2018.03.0 and successive patches. if you have the time to experiment, look for solutions and potentially write your own, start using Amazon Linux 2. As u/cr125rider implies elsewhere in this thread, the switch to systemd (and IMHO, journald) is huge and at the very least will require you to retrain your muscle memory and the way you think about approaching problems. I.e., type X instead of Y. We're using both in my shop and quite frankly, I don't see much of a difference (yet) but speaking from experience, I know it's really painful skipping multiple versions when upgrading the OS. If you ever have to apply security patches to an application and those patches are only available for the most recent OS, you're in for a long weekend either upgrading to each version in succession, or rebuilding the whole instance. To recap: immediate need? Use Amazon Linux 1. Just playing around? Use 2.
2 of 5
11
Amazon Linux 2 is based off centos 7.3.1 it has systemd. Amazon Linux is based on the centos 6 series
🌐
Reddit
reddit.com › r/aws › what's the main difference between amazon linux 1 and amazon linux 2?
r/aws on Reddit: What's the main difference between Amazon Linux 1 and Amazon Linux 2?
January 14, 2023 - There's also Amazon Linux 2022 which is newer still, and should generally have more recent versions of packages since it's based off of Fedora rather than whatever mishmash of Fedora/CentOS they used for AL 2.
🌐
End of Life Date
endoflife.date › amazon-linux
Amazon Linux | endoflife.date
2 weeks ago - AWS announced Amazon Linux 2023 2 as a successor to Amazon Linux 2, which uses Fedora as the upstream.
🌐
Amazon Web Services
aws.amazon.com › products › compute › amazon linux 2
Amazon Linux 2
3 weeks ago - Amazon Linux 2 is a Linux operating system from AWS. It provides a security-focused, stable, and high-performance execution environment to develop and run cloud applications. Amazon Linux 2 is provided at no additional charge.
🌐
AWS
docs.aws.amazon.com › aws batch › user guide › compute environments for aws batch › compute resource amis › amazon ecs amazon linux 2 ami deprecation
Amazon ECS Amazon Linux 2 AMI deprecation - AWS Batch
On January 12, 2026, AWS Batch changed the default AMI for new Amazon ECS compute environments from Amazon Linux 2 to Amazon Linux 2023. Effective June 30, 2026, AWS Batch will block creation of new Amazon ECS compute environments using Batch-provided Amazon Linux 2 AMIs. After this date, you ...
Find elsewhere
Top answer
1 of 2
7

The difference in that ami-b270a8cf ebs uses magnetic storage for the root volume and ami-f973ab84 gp2 uses General Purpose (SSD) storage for the root volume.

2 of 2
3

AWS's lack of documentation explaining the actual difference between the two (if there is I'll gladly edit this answer) is a bit surprising so I'm adding my own take to this

TLDR;

If you're planning on switching to a faster SSD root volume at some point in the future but want to use Magnetic for now it would be better to use the gp2 version of the AMI and then change the root volume to SSD sometime later

Some more Explanation

  • ami-f973ab84 amzn2-ami-hvm-2017.12.0.20180328.1-x86_64-gp2 - The recommended root volume type is General Purpose SSD (gp2)
  • ami-b270a8cf amzn2-ami-hvm-2017.12.0.20180328.1-x86_64-ebs - The recommended root volume type is Magnetic

However this isn't set in stone so you can still interchange between them (I've used the gp2 version with a Magnetic storage in the past without issues)

I couldn't find any official documentation as to the actual difference between the two AMI versions but the gp2 version most likely has SSD related optimizations added already to the OS

So if you envision switching to SSD at some point in future but want to start with a Magnetic volume it might be better to just use the gp2 optimized AMI right from the start. It probably has some optimizations not relevant to Magnetic volumes but it might be more future proof in case you want to have a faster root volume later

🌐
Medium
medium.com › aws-user-group-peru-oficial › ec2-diferencias-entre-amazon-linux-2-y-amazon-linux-84fce853698c
EC2: Diferencias entre Amazon Linux 2 y Amazon Linux | by Michael Taquía Ayllón | AWS User Group Peru Oficial | Medium
July 19, 2020 - La AMI de Amazon Linux fue lanzada en Setiembre del 2010 y finalizará el soporte estándar el 31 de diciembre de 2020 ,luego entrará en una fase de soporte de mantenimiento. AWS recomienda a sus clientes actualizar sus aplicaciones para el uso de Amazon Linux 2 (lanzada el 2017), que incluye soporte a largo plazo hasta el 2023...
🌐
Reddit
reddit.com › r/aws › can i query an ami to find out if it is amazon linux 1 or 2?
r/aws on Reddit: Can I query an AMI to find out if it is Amazon Linux 1 or 2?
November 2, 2020 -

Given an AMI ID for an existing AMI, I can query the API or command line to find out which OS it is. For example,

aws ec2 describe-images --image-ids $AMI_ID

[...]

"PlatformDetails": "Linux/UNIX"

But for Linux AMIs, is there a way to find out which flavor of Linux it is, without actually launching an instance?

More narrowly, is there a way to find out whether this AMI was built on top of one of the official AWS Amazon Linux 1 or Linux 2 AMIs, and if so, was it AL1 or AL2?

🌐
AWS
docs.aws.amazon.com › amazon ecs › developer guide › amazon ecs clusters › amazon ecs capacity providers for ec2 workloads › amazon ec2 container instances for amazon ecs › amazon ecs-optimized linux amis
Amazon ECS-optimized Linux AMIs - Amazon Elastic Container Service
3 weeks ago - The Linux variants of the Amazon ECS-optimized AMI use the Amazon Linux 2 AMI or Amazon Linux 2023 AMI as their base. You can retrieve the AMI name for each variant by querying the Systems Manager Parameter Store API. For more information, see Retrieving Amazon ECS-optimized Linux AMI metadata.
🌐
AWS
docs.aws.amazon.com › amazon linux › user guide › comparing al2 and al2023
Comparing AL2 and AL2023 - Amazon Linux 2023
1 month ago - Learn about key differences between AL2 and AL2023. Find out about lifespan and support, consistency with deterministic upgrades through versioned repositories, and new core packages.
🌐
AWS
docs.aws.amazon.com › amazon linux › user guide › what is amazon linux 2?
What is Amazon Linux 2? - Amazon Linux 2
With the implementation of Amazon Linux 2023 (AL2023), AL2 is now the previous generation of Amazon Linux from AWS.
🌐
Amazon Web Services
aws.amazon.com › compute › linux from aws › amazon linux 2023 faqs
Amazon Linux 2023 FAQs
3 weeks ago - Amazon Linux 2023 (AL2023) is a general-purpose rpm-based Linux distribution and a successor to Amazon Linux 2. AL2023 simplifies planning for operating system upgrades. Amazon Linux 2023 integrates with AWS services and is designed to be deployed at scale in the cloud. By default, AL2023 AMIs and ...
🌐
Quora
quora.com › What-is-the-difference-between-Amazon-Linux-and-Amazon-Linux-2
What is the difference between Amazon Linux and Amazon Linux 2? - Quora
Answer: Here are differences : Amazon Linux 2 :- Amazon Linux 2 provides modern application environment with the latest enhancements from the Linux community and offers long-term support. It comes with systemd, GCC 7.3, Glibc 2.26, Binutils 2.29.1 that receive Long Term Support (LTS) from AWS. ...
🌐
Medium
cmakkaya.medium.com › amazon-linux-2-vs-amazon-linux-2023-10-key-differences-we-need-to-know-to-avoid-errors-9d0aa4b2bd0d
Amazon Linux 2 vs Amazon Linux 2023 (10 key differences we need to know to avoid errors.) | by Cumhur M. Akkaya | Medium
September 1, 2024 - Amazon Linux 2 vs Amazon Linux 2023 (10 key differences we need to know to avoid errors.) Important announcement for AWS cloud users: If the commands you used in the User Data or …