Amazon AWS Hosted Web Site, start to finish
Jump to navigation
Jump to search
Contents
Buy the Domain
- Buy the domain using Mydomain.com
Initial EC2 Setup
- Sign up for Amazon Web Services, create a Key Pair, and create a security group
- Sign up for AWS Free Usage Tier
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):
- Open up Amazon Web Services Console
- Open up EC2 Console
- 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.
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
- 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)