Moving From Github-Pages to S3

I decided to move from free github-pages hosting to dirt cheap AWS S3 hosting. I also decided to move my DNS from namecheap to the free CloudFlare plan. Here’s the steps I took to transfer everything over.

Most of the steps were adapted from here http://blog.mindthecloud.com/2014/08/31/create-your-static-blog-from-scratch-in-1-hour.html

Prepare AWS

{
	"Version": "2008-10-17",
	"Statement": [
		{
			"Sid": "AddPerm",
			"Effect": "Allow",
			"Principal": "*",
			"Action": "s3:GetObject",
			"Resource": "arn:aws:s3:::NAME-OF-BUCKET/*"
		}
	]
}
{
  "Statement": [
    {
      "Action": [
        "s3:*"
      ],
      "Effect": "Allow",
      "Resource": [
        "arn:aws:s3:::NAME-OF-BUCKET",
        "arn:aws:s3:::NAME-OF-BUCKET/*"
      ]
    }
  ]
}

setup octopress-deploy

Check your work

Edit namecheap cname record

Remove Github site

I deleted the github version so for now only the source lives there
* Delete master or gh-pages branch so that only the source remains

Use Cloudflare

Update your DNS Records