running AWS instance 1. Browse to aws.amazon.com Select My Account/Console and login Select AWS Console to get to Console Home Screen Select EC2 and get the EC2 dashboard check that you have the right region for your credentials 2. Select the blue "Launch Instance" button (screenshot a0). In the "Create New Instance" use the default "Quick Launch Wizard" (screenshot a1): Give the instance a name like MyTest, leave your keypair selected, Select Ubuntu Server 12.04.1 LTS - it has a gold star, which means it's free! Click on Continue 3. Just take the default settings and click on Launch (screenshot a2). You will get the "Your instance is now launching" screen (screenshot a3). 4. Close the window to reveal the status of the running machine on the AWS dashboard (screenshot a4). FlossUK Tutorial 19th March 2013 Page 1 of 3 Quentin Wright - [email protected]
the AWS Instance using SSH 1. Select the instance with the mouse cursor, right click to reveal an Instance Management menu, click on Connect (screenshot a5). 2. Choose "Connect with a standalone SSH client" (screenshot a6) Select (highlight) the example ssh command and copy it. 3. Open a terminal, for ease of use change to the directory where your pem file is and paste: Note that the pem file has to have permissions 400 (screenshot a7). And that the command should be modified with the user "ubuntu" rather than "root" (screenshot a8). After observing these details you might finally get into the machine (screenshot a8 and a9). Rugby Linux Users Group 11th March 2013 Page 2 of 3 Quentin Wright - [email protected]
Volume on the Machine and attaching to the Machine Instance 1. Go to the Management Console Click on ELASTIC BLOCK STORE/Volumes Click on Create Volume (screenshot a10) Select snap-30f81859 - Labor Statistics (Linux) and choose Volume Type of Standard and size 15Gb (it's small!) (screenshot a11) The volume will become available (screenshot a12). 2. Select and right-click on the volume and select Attach (screenshot a13) and attach it to the test machine, confirming the attach (screenshot a14). 3. Use the ssh terminal, make a mount point, mount the volume and inspect it.(screenshot a15). 4. When all is done unmount the volume. 5. Then detach and delete the volume and delete the instance if desired (screenshots a16 and a17). FlossUK Tutorial 19th March 2013 Page 3 of 3 Quentin Wright - [email protected]