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
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.

Discussions

Amazon Linux vs Ubuntu
I have used Ubuntu, Amazon, and CoreOS in AWS, never had an issue. Something else is afoot. More on reddit.com
🌐 r/aws
35
16
October 14, 2017
Acloud
Sign Up · Login · Navigation · Browse · Membership · Discussions · For Business · Our Story · Our Gurus · Serverlessconf More on acloud.guru
🌐 acloud.guru
Amazon Linux vs Ubuntu for EC2
AWS Linux 1/2 is roughly RHEL 6/7 based (respectively). AWS Linux 2022 is moving to Fedora based, which throws a wrench into established workflows/build patterns, so that might be the push for my group to switch to Debian/Ubuntu instead. That said, AWS Ubuntu images also ship with AWS packages pre-installed, like AWS CLI and SSM, the two most critical parts. So it wouldn't be too much of a change. Security should never be left on defaults, so one is never "more secure" than another because both distros should be ultimately configured the same. If there is a performance difference, it is so small and relatively insignificant in the big picture that my group doesn't even devote brain space towards. AWS Linux 2 does have kernel live patching, which is a paid extra feature on Ubuntu. More on reddit.com
🌐 r/aws
21
21
February 24, 2022
Is my Amazon EC 2 running Amazon Linux or Ubuntu? - Stack Overflow
I am a little confused here. I created a Amazon EC2 instance with Ubuntu Linux 64-bit 12.04 LTS, now when I SSH into it I get the following but on Amazon Management console I get the following Wh... More on stackoverflow.com
🌐 stackoverflow.com
🌐
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 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?

🌐
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 - 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.
🌐
Linux Hint
linuxhint.com › ubuntu-amazon-linux
Ubuntu Vs. Amazon Linux – Linux Hint
Amazon Linux 2 is the most recent and stable release. However, these distributions are only supported in Amazon Web Services and Computer Clouds. Remote connection is made secure in Amazon Linux by using a pair of Secure Shell keys.
🌐
A Cloud Guru
acloud.guru › forums › aws-csa-pro-2019 › discussion › -LYz169GHrjJ4kg2IytX › Advantages of "Amazon Linux 2" over other flavours of Linux
Acloud
Sign Up · Login · Navigation · Browse · Membership · Discussions · For Business · Our Story · Our Gurus · Serverlessconf
Find elsewhere
🌐
LinuxVox
linuxvox.com › blog › amazon-linux-vs-ubuntu
Amazon Linux vs Ubuntu: A Comprehensive Comparison — linuxvox.com
Amazon Linux comes in two major versions: Amazon Linux 1 and Amazon Linux 2. ... Tightly integrated with AWS services such as Amazon EC2, S3, and CloudWatch. Optimized for performance and security on AWS. Regularly updated to include the latest security patches and AWS-specific enhancements. Ubuntu is a widely used Linux distribution known for its user-friendly interface, large community support, and extensive software repository.
🌐
Linux Magazine
linuxnetmag.com › home › blog › amazon linux vs ubuntu [detailed comparison]
Amazon Linux vs Ubuntu [Detailed Comparison] - Linux Magazine
April 17, 2021 - In any case, we urge clients to move to and to utilize, the most recent variant of the Amazon Linux AMI to guarantee the best client experience that we can give. Ubuntu is a term from antiquated Africa that signifies “mankind to other people. Ubuntu is delivered at regular intervals, with long haul support (LTS) delivers each two years of 22 October 2020, the latest long haul support discharge is 20.04 (“Focal Fossa”), which is upheld until 2025 under open help and until 2030 as a paid choice.
🌐
G2
g2.com › compare › terracloudx-amazon-linux-2-vs-ubuntu
Compare Amazon Linux 2 vs. Ubuntu | G2
According to recent feedback, Ubuntu is praised for its continuous evolution and adaptability, with users noting improvements in system components like Rust integration. Meanwhile, Amazon Linux 2 users value its long-term support and security ...
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.
🌐
Findgaps
findgaps.com › home › amazon linux vs ubuntu - navigating the choices in linux distributions
Amazon Linux vs Ubuntu: Choosing the Right Distribution
March 11, 2025 - Amazon Linux is closely integrated with AWS features and services, optimized for cloud environments. ... Ubuntu is an open-source Linux distribution based on Debian, widely used for servers, desktops, and cloud environments.
🌐
Amazon Web Services
aws.amazon.com › compute › amazon linux 2 › faqs
Amazon Linux 2 FAQs
2 weeks ago - We will continue to provide critical security patches for Python 2 as per our LTS commitment for Amazon Linux 2 core packages even though the upstream Python community declared Python 2.7 End Of Life in January 2020.
🌐
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
🌐
Reddit
reddit.com › r/aws › debating moving instances from aws linux 2 to ubuntu
r/aws on Reddit: Debating moving instances from AWS Linux 2 to Ubuntu
February 13, 2024 -

Very worried I am going to end up on a upgrade treadmill moving my instances (100's) to AL2023 and beyond. Huge engineering an QA effort moving from AWS Linux 1 to 2, only to deal with having to do this all over again next year. I've read AWS Linux is "optimized" for AWS hardware, but these are web and application servers that aren't CPU heavy, my thought is performance difference is negligible in this case.

So the real issue to me is in-place upgrades, looking for the cleanest path without have to rebuild the servers from scratch. Given that statement, my sense is Ubuntu 22.04 and up is more likely to have a seamless in-place upgrade path than AL2023 and its successors. Plus, I've had much more luck tracking down older more obscure packages on Ubuntu as opposed to AWS Linux which always seems like a painful hunt.

Appreciate anyone's experience/advice.

🌐
G2
g2.com › home › it infrastructure software › operating systems
Best Operating Systems: User Reviews from July 2026
March 6, 2025 - Reviewers appreciate Ubuntu's balance between simplicity and power, its clean interface, straightforward software installation, excellent terminal experience, and large community support, which makes troubleshooting much easier. Users experienced issues with updates causing driver or dependency problems, slower performance of Snap applications compared to traditional packages, and lack of availability of some Windows apps. ... Red Hat Enterprise Linux (RHEL) is a enterprise operating system designed to provide a secure, stable, and high-performance environment for modern IT infrastructures.
🌐
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.
🌐
G2
g2.com › compare › amazon-linux-2-vs-ubuntu-desktop
Compare Amazon Linux 2 vs. Ubuntu Desktop | G2
When assessing the two solutions, reviewers found Amazon Linux 2 easier to use, set up, and administer. However, reviewers preferred doing business with Ubuntu Desktop overall.
Address   100 S Wacker DrSTE 600, 60606, Chicago