User Tools

Site Tools


setting_up_ec2

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
setting_up_ec2 [2019/07/11 22:27]
ed
setting_up_ec2 [2020/03/12 15:23] (current)
ed [On Windows]
Line 1: Line 1:
 +  * [[Getting Started|Back to Getting Started]]
 +
 +====== Getting Started Part 1: Amazon EC2 ======
 +
 ===== Setting up your Amazon EC2 instance ===== ===== Setting up your Amazon EC2 instance =====
  
-Visit Amazon Web Services and create an account https://​aws.amazon.com/​ You will have to put credit card details in, but you won't be charged for your first year if you select a product in the free tier (the free tier has an adequate server for what we'll need).\\ +Visit Amazon Web Services and create an account https://​aws.amazon.com/​ You will have to put credit card details in, but you won't be charged for your first year if you select a product in the free tier (the free tier has an adequate server for what we'll need, just don't create a second one).\\ 
-Get logged in to the AWS site to you see your username beside the bell icon. When logged out, hit the orange button "Sign in to console"​+I have [[https://​peertube.armchairscientist.co.uk/​videos/​watch/​e5ff67cd-2b73-4a60-9fdd-abc0c474211b|a video here that takes you through it]]. Only the first 3 minutes or so are relevant. Remember to change your server location to Europe/​London.\\ 
 +Get logged in to the AWS site to you see your username beside the bell icon. Hit the orange button "Sign in to console"​
   * In the top-right of the nav bar left of "​Support"​ is a region, click this to change your region to EU e.g. Ireland   * In the top-right of the nav bar left of "​Support"​ is a region, click this to change your region to EU e.g. Ireland
   * In the top-left of the nav bar click **Services** then **EC2**, or search for EC2 in the search bar.   * In the top-left of the nav bar click **Services** then **EC2**, or search for EC2 in the search bar.
Line 12: Line 17:
 It may take a few minutes for Amazon to approve your launch request\\ It may take a few minutes for Amazon to approve your launch request\\
 You'll be asked to set up a key pair and save it to your machine. ​ Select **Create a new pair** and hit **Continue**. ​ It's important you don't lose this file or you'll lose whatever is in your EC2 instance and will have to launch a new one.\\ You'll be asked to set up a key pair and save it to your machine. ​ Select **Create a new pair** and hit **Continue**. ​ It's important you don't lose this file or you'll lose whatever is in your EC2 instance and will have to launch a new one.\\
-I have a video here that takes you through it. Only the first 3 minutes or so are relevant. Remember to change your server location to Europe/​London.\\ +\\
-https://​peertube.armchairscientist.co.uk/​videos/​watch/​e5ff67cd-2b73-4a60-9fdd-abc0c474211b ​\\+
 Now we should add security rules so when we make the web pages they will be accessible by anyone with a browser. Now we should add security rules so when we make the web pages they will be accessible by anyone with a browser.
  
Line 31: Line 35:
 Tick your instance.\\ Tick your instance.\\
 Go to Actions > Networking > Change Security Groups.\\ Go to Actions > Networking > Change Security Groups.\\
-Tick your security group and Apply.+Tick your security group and Apply.\\ 
 +{{wiki:​securitygroupmenu.png?​400}}
  
 You should now be able to connect to your instance. You should now be able to connect to your instance.
 +
 +Make sure you **DON'​T** disable the existing ticked Security Groups (those are the ones that let you SSH into the server) i.e. install-wizard.
  
 ==== On Mac/Linux ==== ==== On Mac/Linux ====
 Mac and Linux systems have builtin OpenSSH tools to connect to your server: Mac and Linux systems have builtin OpenSSH tools to connect to your server:
 <​code>​ssh -i youridentifyfile.pem ubuntu@your_server_ip</​code>​ <​code>​ssh -i youridentifyfile.pem ubuntu@your_server_ip</​code>​
 +
 +**Having trouble with permissions or accessing the PEM file?​** ​ Further information [[creating_an_ssh_shortcut|is here]]
  
 ==== On Windows ==== ==== On Windows ====
-There are some extra steps needed to convert your PEM file to something compatible with PuTTY if you are using Windows. There are some instructions for that here: \\ +There are some extra steps needed to convert your PEM file to something compatible with PuTTY if you are using Windows. There are some [[https://​aws.amazon.com/​premiumsupport/​knowledge-center/​convert-pem-file-into-ppk/​|instructions for that here]]
-https://​aws.amazon.com/​premiumsupport/​knowledge-center/​convert-pem-file-into-ppk/ ​+
  
-Download putty here:\\ +Download putty here: https://​www.chiark.greenend.org.uk/​~sgtatham/​putty/​ \\
-https://​www.chiark.greenend.org.uk/​~sgtatham/​putty/​ \\+
 For simplicity, download the executables under “Alternative binary files”\\ For simplicity, download the executables under “Alternative binary files”\\
 The main program “putty.exe” 32-bit\\ The main program “putty.exe” 32-bit\\
 And the key converter utility “puttygen.exe”\\ And the key converter utility “puttygen.exe”\\
 The MSI installer is more customisable but fiddly. \\ The MSI installer is more customisable but fiddly. \\
-Another ​video guide to both converting and connecting\\ +Another ​[[https://​youtu.be/​bi7ow5NGC-U|video guide]] to both converting and connecting
-https://​youtu.be/​bi7ow5NGC-U ​+
  
 ---- ----
  
-Now move on to the [[2019-03-17|next set of instructions]] to set up a web and database server.+Now move on to the [[getting_started_part_2|next set of instructions]] to set up a web and database server.
  
setting_up_ec2.1562880473.txt.gz · Last modified: 2019/07/11 22:27 by ed