Hi all,
I created the perfect AMI: OpenSolaris with JDK, Ant, MySQl 5 and GlassFish. And then it turns out that OpenSolaris has different directions for bundling than Linux. It took me a while to find them, but I did. Here they are (I'll skip the pre-bundling cleaning up):
- Connect to the OpenSolaris instance in the same way as Linux (SSH).
- Execute the following commands:
cd /mnt
and/opt/ec2/sbin/rebundle.sh -v your-bundle.img
. Note: of course you can name the bundle whatever you want. - Get some coffee. This could take a while.
- Set the following environment variables:
-
export BUCKET=<bucket-name>
-
export JAVA_HOME=/usr/jdk/latest
-
export EC2_HOME=/opt/ec2
-
export PATH=$PATH:$EC2_HOME/bin
…
-