EC2 Conversion

These steps outline how to utilize the thincrust tools to deploy an application to EC2.

1. Install the appliance-creator
2. Download the appliance configuration code.
3. Signup for Amazon's EC2 and S3 services.
4. Setup and install the amazon ec2 rpm
5. Build an Appliance Image for EC2:
# su -
# cd [ACE_HOME]/resources
# appliance-creator --name ec2 --config ec2Appliance-f9.ks
6. Convert the image to EC2 format. This will create a file called ec2-[TIMESTAMP].img
# ec2-converter -f ec2-sda.raw --inputtype diskimage
7. Bundle the ec2-[TIMESTAMP].img file:
# ec2-bundle-image -i ec2-[TIMESTAMP].img -c [/Path/To/Cert] -k [/Path/To/Key] -u [ACCOUNT_NUMBER] -r i386
8. Upload the image top S3:
# ec2-upload-bundle -b [MAH_BUCKET] -m /tmp/ec2-[TIMESTAMP].img.manifest.xml -a [ACCESS_KEY] -s [SECRET_ACCESS_KEY] /tmp/ec2-[TIMESTAMP].img.manifest.xml
9. Register the manifest to create the Amazon Machine Image (AMI). This will return to you an ami id
# ec2-register -C [/Path/To/Cert] -K [/Path/To/Key] [MAH_BUCKET]/ec2-[TIMESTAMP].img.manifest.xml
10. Launch the image
# ec2-run-instances -C [/Path/To/Cert] -K [/Path/To/Key] [AMI_ID] -k [keypair]
# ec2-describe-instances -C [/Path/To/Cert] -K [/Path/To/Key]
11. You can now ssh into the appliance using hte keypair from above.