Thanks to my friend Dustin, and his EC2 demo using Elasticfox Firefox Extension for Amazon EC2 I got an EC2 image setup. With other references Link 1,Link 2,Link 3 I was also able to create my own AMI.
Some notes specific for my configuration.
Pre-config ElasticFox key for launching directly from ElasticFox SSH connections.
mkdir ~/ec2-keys mv ~/Downloads/elasticfox.pem ~/ec2-keys/id_elasticfox chmod 600 ~/ec2-keys/id_elasticfox chmod 700 ~/ec2-keys/ ssh -i /Users/rbradfor/ec2-keys/id_elasticfox [email protected]
Installed Software.
apt-get update apt-get -y autoremove apt-get -y install apache2 apt-get -y install mysql-server # Prompts for password (very annoying) apt-get -y install php5 apache2ctl graceful echo "Hello World" > /var/www/index.html echo "< ? phpinfo() ?>" > /var/www/phpinfo.php
Configuration to save AMI.
scp -i ~/ec2-keys/id_elasticfox ~/ec2-keys/id_elasticfox pk-CHK7DP4475BWUKIUF4WFDIW3VMYDYOHQ.pem cert-CHK7DP4475BWUKIUF4WFDIW3VMYDYOHQ.pem [email protected]:/mnt
ec2-bundle-vol -d /mnt -c cert-CHK7DP4475BWUKIUF4WFDIW3VMYDYOHQ.pem -k pk-CHK7DP4475BWUKIUF4WFDIW3VMYDYOHQ.pem -u AccountNumber -r i386 -p ubuntu804_lamp ec2-upload-bundle -b rbradford_804_lamp_ami -m /mnt/ubuntu804_lamp.manifest.xml -a AccessID -s SecretKey
Raising the debconf priority would prevent you from the password prompt during installation.
I’m having the hardest time with elasticfox. Mostly because most of the tutorials I found are for windows or putty. I’m using wubi ubuntu hardy, java sun, elasticfox. when I get to the point where I open ssh connection a screen pops up with an error. i’m wondering if I have to preconfid the ssh to allow elasticfox to do it. That’s what I gathered from your post. Maybe I’m way off. I tried watching the video you have above but even after searching for codec and downloading it didn’t work so I am going to try over in windows I have the codecs there for sure. I would appreciated deeply any advice or tips you can pass along.
TIA,
Alvina