Skip to content

How to Host Your Static Website on Amazon S3: Step-by-Step Guide

1 min read
  1. Login to your Amazon AWS account
  2. Create a new hosted zone for your domain using Route 53
  3. Copy the NS records for this zone to your domain provider (e.g., GoDaddy)
  4. Edit your domain on your domain registrar (e.g., GoDaddy) by clicking Set Nameservers
  5. Create a new Amazon S3 bucket for your website
  6. Edit the bucket policy
  7. Paste in this policy, making sure to update for your domain
{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "AddPerm",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::serbinskipromise.com/*"
        }
    ]
}
  1. Enable website hosting for this S3 bucket
  2. Create a record set for this new bucket: Set type A-record, Alias true and select the bucket you created before
  3. (optionally) Setup another bucket to redirect www.* requests to a clean URL (or vice versa to maintain www.*)
  4. Redirect requests to this new bucket to your main domain
  5. Create a record set for this new bucket
  6. Upload content and 🙌🏻
code

Related Posts

MothersClick Acquired by Lifetime Networks

MothersClick.com [http://www.mothersclick.com/] and the rest of the ParentsClick Network [http://www.parentsclick.com/]have been acquired by Lifetime Entertainment [http://www.marketwatch.com/news/story/l/story.aspx?guid=%7B764B126C-2071-4605-8222-7FA1E481B0EE%7D] . I’ve been working on this site and with Dietrich (CEO & founder) for over 2

news — 5 min read

Leo talks about the new TWiT.tv site

At the end of last week’s TWiT episode [http://www.twit.tv/62], Leo and company talk about the new TWiT.tv site [https://tedserbinski.com/drupal/twit-tv/]. A clip of that can be listened to below. Also last week on the Lullabot podcast [http://www.lullabot.com/podcast]

code — 1 min read

My first 15 min of fame!

A few weeks back, Leo Laporte [http://en.wikipedia.org/wiki/Leo_Laporte] approached Lullabot [http://www.lullabot.com/] about developing the new TWiT website [http://www.twit.tv/]. Well we gladly accepted, I mean, this is Leo! So I was put in charge of developing the new site, and

code — 1 min read