Amazon Linux AMI is a red hat based distro so things like the package installer or the tools for service manage are different, and another thing you need to consider is the way of bootstraping, amazon instances are more flexible to do some things in cloudformation in the ubuntu way the best form to do it is with cloudinit https://help.ubuntu.com/community/CloudInit, you need to consider the packages too are multiple packages that not are native supported by Amazon Linux.

Answer from Douglas Lopez on Stack Overflow
🌐
Reddit
reddit.com › r/aws › amazon linux vs ubuntu
r/aws on Reddit: Amazon Linux vs Ubuntu
October 14, 2017 -

EDIT: Issue was using the instance wizard that shows up right after creating a free tier. The regular wizard did not have the ssh problem.

I created an Ubuntu EC2 instance and couldn't ssh to it, getting "resource temporarily unavailable". Played with firewall and security group settings but no dice.

I then tried an Amazon Linux AMI and ssh worked. Is this home court advantage?

🌐
G2
g2.com › compare › amazon-linux-2-arm-ami-vs-ubuntu-18-ubuntu-18-04-lts
Compare Amazon Linux 2 (ARM) AMI vs. Ubuntu 18 (Ubuntu 18.04 LTS) | G2
When comparing quality of ongoing product support, reviewers felt that Amazon Linux 2 (ARM) AMI is the preferred option. For feature updates and roadmaps, our reviewers preferred the direction of Ubuntu 18 (Ubuntu 18.04 LTS) over Amazon Linux ...
Address   100 S Wacker DrSTE 600, 60606, Chicago
🌐
Quora
quora.com › Which-EC2-instance-is-better-Amazon-Linux-AMI-or-Ubuntu
Which EC2 instance is better: Amazon Linux AMI or Ubuntu? - Quora
Answer (1 of 7): I will Suggest to use “ubuntu” do not try “amazon linux” if you are using any type of PHP DB website. and not using much of the other Amazon product. Amazon Linux is serious pain. I always have memory issue. even you have very small website.
🌐
G2
g2.com › compare › amazon-linux-2-arm-ami-vs-ubuntu-20-ubuntu-20-04-lts
Compare Amazon Linux 2 (ARM) AMI vs. Ubuntu 20 (Ubuntu 20.04 LTS) | G2
When comparing quality of ongoing product support, reviewers felt that Amazon Linux 2 (ARM) AMI is the preferred option. For feature updates and roadmaps, our reviewers preferred the direction of Ubuntu 20 (Ubuntu 20.04 LTS) over Amazon Linux ...
Address   100 S Wacker DrSTE 600, 60606, Chicago
🌐
StackShare
stackshare.io › stackups › amazon-linux-vs-ubuntu
Ubuntu vs Amazon Linux | What are the differences? | StackShare
It offers long-term support (LTS) releases, ensuring compatibility and stability for an extended period. Ubuntu, on the other hand, has a larger community of contributors and a more frequent release cycle.
🌐
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
Find elsewhere
🌐
LinuxVox
linuxvox.com › blog › amazon-linux-ami-vs-ubuntu
Amazon Linux AMI vs Ubuntu: A Comprehensive Comparison — linuxvox.com
It comes pre-configured with tools and libraries commonly used in AWS environments, such as the AWS CLI and cloud-init. Ubuntu is a widely used open-source Linux distribution based on Debian.
🌐
Quora
quora.com › What-are-the-advantages-of-using-Amazon-Linux-over-Ubuntu-Server
What are the advantages of using Amazon Linux over Ubuntu Server? - Quora
Long-term support variants: Amazon Linux 2 and AL2023 offer multi-year support channels with security backports suitable for production workloads. Fast security patching: AWS-controlled repos can push critical fixes promptly to AMIs and managed instances.
Top answer
1 of 7
30

I was in a similar situation; fully managed dedicated server, LAMP, CentOS. Then we decided to move to EC2. Also, I had very little systems or linux administration experience. I have almost zero experience with Ubuntu, so I really cannot speak to which is the so-called better OS.

I tried a bunch of pre-built AMI's with minimal OS installs from Rightscale, Alestic, Scalr and Amazon. I ended up building all my own AMI's on top of Amazon Linux, first using version 2010.11.01, now I've migrated all my custom AMI's to Amazon Linux version 2011.03.01.

The decision to go with an Amazon Linux AMI vs the other AMI providers was not an easy one. I played around with and tested different setups for close to a month before I made my final decision. In the end, since I wanted to use CentOS, it basically boiled down to one thing. I figured who better to know what hardware related dependencies needed to be included in the OS than the people who designed, built and maintain EC2. Nothing against Rightscale, Scalr or Alestic.

Six months later, even though I hit a few bumps in the road, Amazon's Linux has been quite stable. Though, I did decide to compile some of the software we use from the source (ie. php 5.3, MySQL 5.5, etc) because I ran into trouble with the pre-built packages Amazon maintained in their package repository.

2 of 7
86

Amazon Linux is a rolling distro, like Fedora, or Debian Testing (sort of). In my view it is not suitable for any production product whatsoever. I'm surprised more people do not realize this. This means if you launched your Amazon Linux instance, say, 450 days ago and do an update today, you will be pulling updates from an entirely different release. Once a new release is made, you have no buffer time, you immediately start pulling updates from the new release. As you can imagine, this may pull in a cascade of dependencies, and has a tendency to break things. For this reason it is inherently unmanageable. You cannot work something like this into an update policy without it being an absolute mess. Do not use Amazon Linux for anything serious.

Ubuntu LTS is a fine choice, as is Debian Stable or CentOS. All of those give you many years of updates to the same release.

Amazon Linux also has no bug tracking system, users must post questions in the AWS Developer Forums to file a bug against a package! There is no way to search for bugs, either. This should be a showstopping issue for almost everyone.

Amazon Linux makes it very difficult to retrieve source packages, needlessly.

🌐
Michael Bianco
mikebian.co › home › choosing the right ubuntu ami for ec2
Choosing the right Ubuntu AMI for EC2 - Michael Bianco
October 31, 2023 - const ami = aws_ec2.MachineImage.latestAmazonLinux2023({ cpuType: aws_ec2.AmazonLinuxCpuType.ARM_64 }) However, Amazon Linux isn’t always the right choice. It’s not Ubuntu, it’s Fedora (also, Amazon Linux 2 is older than 2023):
🌐
Linux Magazine
linuxnetmag.com › home › blog › amazon linux vs ubuntu [detailed comparison]
Amazon Linux vs Ubuntu [Detailed Comparison] - Linux Magazine
April 17, 2021 - Since version 14.04, GNOME has been Ubuntu’s default desktop. It upholds the most recent EC2 occurrence type includes a lot of bundles that empower simple reconciliation with AWS. Amazon Web Services gives progressing security and support updates to all cases running the Amazon Linux AMI.
🌐
Amazon Web Services
aws.amazon.com › compute › amazon linux 2 › faqs
Amazon Linux 2 FAQs
2 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 ...
🌐
WordPress
fixyacloud.wordpress.com › 2020 › 01 › 26 › amazon-linux-vs-ubuntu-for-amazon-ec2-closed
Amazon Linux vs. Ubuntu for Amazon EC2 [closed]
January 26, 2020 - It comes down to what tools and conventions you are most familiar with. Although Ubuntu does better on these benchmarks, the tests themselves contribute towards Ubuntu winning, and the differences don’t seem to be big anyway.
🌐
Reddit
reddit.com › r/aws › what operating system, ami should i choose for my hobby project? how do people choose which linux distribution to use for real company project?
r/aws on Reddit: What Operating System, AMI should I choose for my hobby project? How do people choose which Linux distribution to use for real company project?
November 26, 2022 -

Hello. I am new to AWS and I don't know which AMI should I choose. There seems to be so many of those. I want to host my Java Spring Boot hobby project on the cloud. I think of maybe using Ubuntu since it seems kind of friendly (at least for a noob), but I know that Amazon Linux 2 AMI is popular.

So how do companies and people choose which OS, AMI to use? Would Ubuntu be a good choice?

🌐
Slashdot
slashdot.org › software › operating systems › amazon linux 2 vs. ubuntu
Compare Amazon Linux 2 vs. Ubuntu in 2026
What’s the difference between Amazon Linux 2 and Ubuntu? Compare Amazon Linux 2 vs. Ubuntu in 2026 by cost, reviews, features, integrations, and more
🌐
LinuxWays
linuxways.net › best-of-linux › amazon-linux-vs-ubuntu-for-ec2
Amazon Linux vs Ubuntu for EC2 – LinuxWays
It’s built to perform exceptionally well on AWS’s EC2 platform, enabling smooth and rapid scalability according to your workload demands. This performance optimization means that whether you’re running one instance or thousands, Amazon Linux can handle the load efficiently. Ubuntu, on the other hand, is a Debian-based Linux operating system.
🌐
Brandorr Group
brandorr.com › blog › what-type-of-ami-should-you-use
What type of AMI should you use?
September 30, 2015 - One of the questions we regularly get, is which Linux AMI should I use at Amazon EC2? To answer this question, there are a number of questions you'll need to ask yourself to narrow it down. 1) Which...