AWS Linux Distro

Hi /r/aws

I was wondering how many people are using the Amazon Linux image? It would seem the portability between other virtualization/cloud platforms would make it worth using CentOS or Ubuntu. People who are using Amazon Linux how frequently is it updated, do you have any complaints? Thank you


Related discussions:

I was using it and it was pretty good. One of my main issue was the terms of condition for the support.

If you go with CentOS 7, this will be supported until 2024.

If you go with AWS Linux:

Support may be asked to move to newer versions as part of the support process.

I’m using it on a few projects and don’t really have many complaints. The Amazon Linux AMI is based off of CentOS, so if you’re comfortable w/ CentOS you’ll find using the Amazon AMI very similar. Also, if the default Amazon yum repo is ever missing a certain package you can just use EPEL or something.

Amazon updates its AMI on a 6-month release cycle and upgrading is usually very easy. A few years ago, I upgraded an AMI over 3 versions without any problems.

It depends on how you like to manage your instances. Amazon Linux plays very nice with autoscaling groups. When you launch an Amazon Linux instance, the important security updates are installed automatically. We also use chef-solo to bootstrap our instances. It allows us to terminate instances one by one to replace them with updated ones.

One annoying thing is there are no centos hvm images. Not a problem if you don’t need it, but very annoying if you do for HPC or similar use.

Some thoughts:

  1. I would say “try to use AWS Linux if you can”. I’m guessing over time, it will become faster, as it will be always be configured for optimal AWS performance. In the past, there have been problems (i.e. Ubuntu 10.04 had a really slow disk driver on HVM.) Using newer kernels is almost always better-- the kernel devs are always finding little ways to shave 1-5% off common use cases every few months.

  2. AWS Linux is not strictly “based on CentOS”. There are some rare cases where it’s hard to use. They have upgraded many things (because Centos 6 took so long to come out), and even removed some things. (For example, try getting a real X11 server on it – they didn’t build one, and the CentOS packages are incompatible.)

  3. Look into Docker. It provides a better “dotted line” between your infrastructure and your apps, and makes your base OS choice irrelevant. For example, if developers want to switch from Python 2.x to 3.x, why do we need Operations people involved? (Or Ruby 1.9 to 2.0, or upgrade the Java version, or add libXML, etc.). Your developers can continue to use what they are comfortable with (say Ubuntu 12.04), or hop to another distro if a package is out of date.

Will I ever be able to run AWS Linux on my home computer? No.