Difference between revisions of "Amazon AWS Hosted Web Site, start to finish"

From Colettapedia
Jump to navigation Jump to search
Line 1: Line 1:
==General Steps==
+
==Buy the Domain==
# Buy the domain using [http://www.mydomain.com Mydomain.com]
+
* Buy the domain using [http://www.mydomain.com Mydomain.com]
# [http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/get-set-up-for-amazon-ec2.html#sign-up-for-aws Sign up for Amazon Web Services, create a Key Pair, and create a security group]
+
==Initial EC2 Setup==
#* Get started using EC2 with [http://aws.amazon.com/free/ AWS Free Usage Tier]
+
* [http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/get-set-up-for-amazon-ec2.html#sign-up-for-aws Sign up for Amazon Web Services, create a Key Pair, and create a security group]
#* Not possible to specify password when logging into instance, need public key (btw which only works for the region it was created):
+
* Sign up for [http://aws.amazon.com/free/ AWS Free Usage Tier]
#*# Open up [https://console.aws.amazon.com/console/home?# Amazon Web Services Console]
+
===Create Key Pair for SSHing===
#*# Open up EC2 Console
+
* Not possible to specify password when logging into instance, need public key (btw which only works for the region it was created):
#*# Choose your correct region via navigation bar at the top right
+
# Open up [https://console.aws.amazon.com/console/home?# Amazon Web Services Console]
#*# On the left navigation pane under "NETWORK & SECURITY," choose Key Pairs
+
# Open up EC2 Console
#*# Click Create Key Pair, choose a name for the key pair, probably including the region for which the key pair was created. A .pem file will automatically be downloaded locally. <code>chmod 400</code> the file. Need to specify the .pem file when SSHing.
+
# Choose your correct region via navigation bar at the top right
 +
# On the left navigation pane under "NETWORK & SECURITY," choose Key Pairs
 +
# Click Create Key Pair, choose a name for the key pair, probably including the region for which the key pair was created. A .pem file will automatically be downloaded locally. <code>chmod 400</code> the file. Need to specify the .pem file when SSHing.
 +
===Create Security Group==
 +
* Looks like EC2 is pedantic about who can connect. Need to create a white list of which IPs the instance can talk to. Need to put your IP on the list.
 +
* [http://checkip.amazonaws.com/ checkip.amazonaws.com is pretty simple]
 +
* Command line utility traceroute is helpful in figuring out ISP, also has built in IP utility
 +
# Open up EC2 Console
 +
# If necessary, choose your correct region via navigation bar at the top right
 +
# On the left navigation pane under "NETWORK & SECURITY," choose Security Groups
 +
# Click Create Security Group, and fill in the details
 +
# Click on the Inbound tab and add Rules for HTTP (source=0.0.0.0), HTTPS (source=0.0.0.0), and SSH (your ip address with your.ip.address.boom/32) (always /32 if its your local machine, apparently)

Revision as of 15:55, 1 December 2013

Buy the Domain

Initial EC2 Setup

Create Key Pair for SSHing

  • Not possible to specify password when logging into instance, need public key (btw which only works for the region it was created):
  1. Open up Amazon Web Services Console
  2. Open up EC2 Console
  3. Choose your correct region via navigation bar at the top right
  4. On the left navigation pane under "NETWORK & SECURITY," choose Key Pairs
  5. Click Create Key Pair, choose a name for the key pair, probably including the region for which the key pair was created. A .pem file will automatically be downloaded locally. chmod 400 the file. Need to specify the .pem file when SSHing.

=Create Security Group

  • Looks like EC2 is pedantic about who can connect. Need to create a white list of which IPs the instance can talk to. Need to put your IP on the list.
  • checkip.amazonaws.com is pretty simple
  • Command line utility traceroute is helpful in figuring out ISP, also has built in IP utility
  1. Open up EC2 Console
  2. If necessary, choose your correct region via navigation bar at the top right
  3. On the left navigation pane under "NETWORK & SECURITY," choose Security Groups
  4. Click Create Security Group, and fill in the details
  5. Click on the Inbound tab and add Rules for HTTP (source=0.0.0.0), HTTPS (source=0.0.0.0), and SSH (your ip address with your.ip.address.boom/32) (always /32 if its your local machine, apparently)