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:
/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: