test
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| test [2017/07/23 15:50] – [Connecting to the EC2 Instance] walkeradmin | test [2026/06/17 18:31] (current) – removed walkeradmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | \\ | ||
| - | \\ | ||
| - | |||
| - | ---- | ||
| - | ==== Creating an EC2 Instance ==== | ||
| - | \\ | ||
| - | This guide assumes that you have created an Amazon account to be able to access the Amazon Web Services (AWS) pages, and that you have successfully logged in. | ||
| - | \\ | ||
| - | \\ | ||
| - | Once logged in you will see the following page (be warned, the site layout changes quite frequently, so you might have to do some digging). | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | The first mistake I made was not checking the region in which I was creating my AWS instance. So I created mine in the USA. Not that this really matters for serving a few webpages, but if speed is important, ensure you select a region closest to you. | ||
| - | \\ | ||
| - | \\ | ||
| - | You can do this by clicking the current region in the top right hand corner (highlighted in Orange) and select a suitable local region. | ||
| - | \\ | ||
| - | \\ | ||
| - | We have to chose what we are going to create. | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | From the top left of the page, select Services, then select <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | Now we can select some options and launch our virtual server. | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | Click on the <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | A page with different Operating Systems will open. | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | I am going to use the top option of <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | Select <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | Next we have to chose our instance type. This is setting up how many processors (vCPUs) memory, hard disk space etc that we want. | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | Select <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | Before we launch our instance, we can make some changes. Click the <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | By default you get a storage area of 8GB, if this is not enough then you can increase it. There is an information box that states (at the time of writing) you can have up to 30GB free. Remember, if you pan to have more than one EC2, you have to split that across them. | ||
| - | \\ | ||
| - | \\ | ||
| - | I left my configuration at 8GB. | ||
| - | \\ | ||
| - | \\ | ||
| - | Click the <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | You don't have to do this, but if you are going to have a lot of instances, it does become necessay. Just add a name for this instance (I used Test Webserver.) | ||
| - | \\ | ||
| - | \\ | ||
| - | Click the <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | You can look at security groups as a firewall. All ports are closed unless you open them. By default port 22 (SSH) is open, or you would have no access to your OS. As this is going to be a web server, I will also open Port 80. | ||
| - | \\ | ||
| - | \\ | ||
| - | Click <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | Now you can select <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | You will be shown a review screen of your selected settings. | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | If you are happy, select Saunch in the bottom right hand corner of the page. | ||
| - | \\ | ||
| - | \\ | ||
| - | You will be presented with a pop up that is asking about <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | Where you see <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | Select a new for the new key pair, and click the <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | You will see the <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | Click the <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | The next page confirms that your instance is launching. | ||
| - | \\ | ||
| - | \\ | ||
| - | Click the <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | On this page we can see the information about our instance. The part we will need initially is the IP Address. | ||
| - | \\ | ||
| - | \\ | ||
| - | |||
| - | ---- | ||
| - | ==== Connecting to the EC2 Instance ==== | ||
| - | \\ | ||
| - | To connect to the EC2 instance you will need your <color # | ||
| - | \\ | ||
| - | \\ | ||
| - | {{ : | ||
| - | \\ | ||
| - | If you have neither of these, please read the entire guide. | ||
| - | \\ | ||
| - | \\ | ||
| - | To be able to connect you will need a suitable SSH program, of which there are many. The most popular is probably Putty, however to use putty you need to use Puttygen to convert the .pem key first. So I am using another free application called MobaXterm which you can download from [[HERE]]http:// | ||
test.1500825003.txt.gz · Last modified: (external edit)
