Start your free, no-risk, 4 week trial!

Making an Amazon EC2 ami

Welcome to our blog

I wanted to share some of my thoughts regarding our goal to move Opentracker to Amazon Webservices.

I started with creating my own EC2 ami’s based on a clean install of centos 5.3, and installed java and our default webserver wich is Apache Tomcat 6

the commands to make your own ami are pretty simple:

copy your keys to the instance:

scp -i id_rsa-your-key /path/to/keys/pk.pem /path/to/certificates/cert.pem root@public-ami-dns-name:/mnt

go to /tmp dir

cd /tmp

create a volume for bundeling

ec2-bundle-vol -d /mnt –prefix centos-5.3_tomcat-6.0.18_jdk1.6.0.13 -k /mnt/pk.pem -c /mnt/cert.pem -u your-account-number

upload bundle volume to S3

ec2-upload-bundle -b s3-directory -m centos-5.3_tomcat-6.0.18_jdk1.6.0.13.manifest.xml -a keycode -s keycode

register via AWS console, add following in popup

http://s3.amazonaws.com:80/s3-directory/centos-5.3_tomcat-6.0.18_jdk1.6….

and you are ready to use your own ami image within EC2

Start your free, no-risk, 4 week trial!
Copyright © 2024 Opentracker. All rights reserved.