I set up this blog with Jekyll on S3. It was partially an experiment to set up a Jekyll site and to try to set up a static site on S3. I was expecting there to be more debugging and troubleshooting like I’ve experienced with hosting in the past, but the process was entirely painless.
Amazon has a great guide for this setup. You’ll additionally need to register a domain and configure Route53, to handle DNS. In following this guide, I was up and running within 30 minutes.
There’s no great built-in tools with Jekyll for deployment, so this turned into
a little project for me. Amazon has a well-supported and well-documented Ruby client library for S3. This was an obvious choice. I wanted to avoid uploading my entire
_site/ directory that’s generated by Jekyll every time I made a change or new post, so I found a library that wraps
git to check for file diffs.
This was the script that I came up with! Do what you will with it, I thought it’d be nice to share for anyone else looking for a simple S3 Jekyll uploader.