Think about migrating to Amazon Linux AMI 2012.03 from earlier versions.

While older versions of the AMI and its packages will continue to be available for launch in Amazon EC2 even as new Amazon Linux AMI versions are released, we encourage users to migrate to the newer versions of the AMI, and to keep their systems updated. In some cases, customers seeking support for an older version of the Amazon Linux AMI through Amazon Premium Support may be asked to move to newer versions as part of the support process.

To upgrade to Amazon Linux AMI 2012.03 from 2011.09 or 2011.02, run yum update. When the transaction is complete, reboot your instance.

We have included updated versions of all the AWS command line tools that are part of the Amazon Linux AMI. See the 2012.03 package list for more details.

Support is included for both Tomcat 6 and Tomcat 7. Both are included in the package repository, and can be installed via yum install tomcat6 or yum install tomcat7.

New Amazon Linux AMI 2012.03 users who yum install mysql (or yum install mysql55) will get MySQL 5.5 by default, unless they explicitly choose to install the older MySQL 5.1. Users upgrading via yum from Amazon Linux AMI 2011.09 instances with the older MySQL 5.1 installed will stay with MySQL 5.1, which is still available as mysql51 in the package repository.

Similar to MySQL, new Amazon Linux AMI 2012.03 users who yum install postgresql (or yum install postgresql9) will get PostgreSQL 9 by default, unless they explicitly choose to install the older PostgreSQL 8. Users upgrading via yum from Amazon Linux AMI 2011.09 instances with the older PostgreSQL 8.4.x installed will stay with PostgreSQL 8, which is still available as postgresql8 in the package repository.

The Amazon Linux AMI 2012.03.3 point release shipped with kernel version 3.2.21, replacing the 3.2.12 kernel that shipped with the initial Amazon Linux AMI 2012.03.

While GCC 4.4.6 remains the default, we have included GCC 4.6.2, specifically for use on EC2 instances that support AVX. Run yum install gcc46 in order to get the packages. GCC 4.6 enables the Amazon Linux AMI to take advantage of the AVX support available on cc2.8xlarge instance types.

While Python 2.6 is still the default, users can yum install python27.

While Ruby 1.8.7 is still the default, users can yum install ruby19.

The CUDA toolkit version 4.1 is available on the GPU-enabled HVM AMI (in us-east-1).

Many of the packages in the AMI have been re-synced to their latest upstream version. For reference, we have produced a list of all source RPMs included in Amazon Linux AMI 2012.03.

There are six different flavors of the Amazon Linux AMI 2012.03. This compatibility table shows which 2012.03 AMI flavors launch on each EC2 instance type.

The Amazon Linux AMI FAQs is updated with both general and technical topics.

Q: What steps do I take to upgrade from PostgreSQL 9.1 to 9.2?

Please note that you can avoid this issue entirely by running the latest Amazon Linux AMI, on which PostgreSQL 9.2 is the default.

PostgreSQL 9.2 offers important new features and performance improvements and it has been included in the Amazon Linux AMI 2012.09 release based on customer requests.

After upgrading PostgreSQL from 9.1 to 9.2, the database service will no longer start. This happens because the 9.1 version of the database format is not immediately usable with the 9.2 server. We have provided the postgresql-upgrade package as an automatic install alongside the latest release of postgresql 9.2. This allows you to perform an in-place upgrade on your database using service postgresql upgrade.

Behind the scenes, this runs pg_upgrade to migrate your database to the new format. Note that the upgrade will reset configuration files such as pg_hba.conf to a clean state. Your old configuration files are stored in /var/lib/pgsql9/data-old, and can be copied over the default files in /var/lib/pgsql9/data after your review.

Once the upgrade is finished and the configuration files are restored, the service should start normally.

We use the Amazon EC2 Discussion Forum for bug reports, feature requests, and package requests. These forums are monitored by AWS Developer Support as well as the Amazon Linux AMI engineering team.

We are actively hiring Linux Systems Engineer, Linux Software Development Engineer, and Linux Kernel Engineer positions.