How to create a CentOS 5.4 Amazon AMI with java and tomcat

From kampx.com
After some experimenting with Google App Engine, there is one thing that bothers me the most; I cannot run any background programs.

So, I thought it was time to check out the competition at Amazon ec2. I like centos and I wanted to create an Amazon Machine Image (AMI) which runs on 5.4, contains a servlet engine (Apache Tomcat) and is able to receive http requests on port 80. There are a lot of resources available (here, here, here, here, here, here,here and here) but none of them did exactly what I want.

The script I wrote (below) does the following things:
(more…)

Continue ReadingHow to create a CentOS 5.4 Amazon AMI with java and tomcat