AWS: How to setup a simple website

  1. In order to setup a simple website on Amazon AWS, you will need to first acquire a domain. Although not technically necessarily in order to view it, it looks better than the default url that you get from amazon. I used Namecheap to register my domain, which was a little cheaper than GoDaddy, one of the major domain name registrars out there.
  2. The next step is to register for an AWS account, if you haven’t done that already. Go to AWS to register/create an account with AWS.
  3. Create a storage bucket using Amazon S3, using your registered domain name as the bucket name.
  4. Upload the files related to your website to your newly created bucket. Make sure to include a file called index.html at the root of your bucket, because by default that is where AWS expects it to be.
  5. Use Amazon Route 53 to change the DNS Name Servers from Namecheap or GoDaddy to AWS.
  6. Create a “Hosted Zone” for your domain.
  7. Click on the new “Hosted Zone” you just created, and then click on “Create a Record Set”
  8. Use the following values to create a hosted zone (These are not the only possibilities)

Name: <your domain name>

Type: A-IPv4 Address

Alias: Yes

Alias Target: <choose the target for your domain from the drop down>

Routing Policy: Simple

Click on Save Record Set button at the bottom.

9. Copy the NameServers from Amazon to your NameCheap or GoDaddy domain configuration.

The Name servers that I was given by Amazon were:

ns-286.awsdns-35.com
ns-771.awsdns-32.net
ns-1311.awsdns-35.org
ns-1781.awsdns-30.co.uk

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s