How to launch first AMI on Amazon EC2?
I followed the steps outlined below on my Windows XP laptop and got the details right through trial and error. I did paste screen shots initially to make the narrative more visual but I eventually took them off because their resolution did not promote clarity
- Download ElasticFox, a Mozilla FireFox extension that will allow you to interact with ec2 from the Firefox browser.
- Download PuTTY, a SSH and telnet client that is transparently used by ElasticFox for establishing a remote connection with ec2.
- Also download PuTTYgen, an RSA and DSA key generation utility from the same download site.
Connect with EC2
- Start FireFox and load ElasticFox from its Tools menu.
- Click the single blue Credentials button on the top L of the ElasticFox pane. A Manage EC2 Credentials dialog box pops up. Enter an Account Name of your choice and provide the AWS Access Key and AWS Secret Access Key for your ec2 account from the aws site.
- Open the KeyPairs tab and press the middle green Create a new keypair button on the top L of the KeyPair pane. Once you provide a name for the key pair, e.g., pevans, and click OK, it will generate a key pair, pevans.pemand save it in c:documents and settings<user name>ec2-keys. Note that you can change the location for the ec2-keys folder by clicking on the Tools button on the top R hand ElasticFox pane.
- Start PuTTYGen, load the pevans.pem file created in the earlier step and generate a private key pevans.ppkfrom it. ElasticFox uses PuTTY internally for establishing a SSH connection with EC2. The private key generated in this setp will be used by PuTTY for this connection.
- Open the AMI and Instances tab and select any public AMI from the Machine Images pane, which packages the OS and apps , e.g., Fedora, Apache and mySQL, that you require.
- Click on the green Launch Instance button on the top L of the Machine Images pane to launch an AMI isntance
- You should see a new AMI appear in the lower Your Instance pane. it should start up in the lower panel with pending status (takes a minute or two)
- Select the AMI and click on the fifth green Connect to Instance button
- A telnet window should appear with you logged in as root into the shell.
- If the shell prompts you for a username and password, then the private key generation was not done correctly and should be redone with care