Dr. SpotInstance

How I Learned to Stop Worrying and Love the Termination Notification

I recently moved all my compute resources over to Spot Instances in AWS. I love it. If you’re not using Spot in your applications, I hope this will convince you to look into it. A Demanding Infrastructure Your standard instance is known as an On Demand instance, meaning you launch and terminate as needed. For this, you pay a set amount per minute. Once launched, the instance will continue to operate until something terminates it. [Read More]

DevOps Hell's Kitchen

This might feel a little too real for some of you.

Yesterday, while sharing a beer with my coworkers, we discussed an idea I’ve been kicking around for many years now. We joked and laughed while wondering aloud if anyone would be interested. Then, the name was coined: “DevOps Hell’s Kitchen”. The premise is fairly simple. Two teams of software engineers compete in head-to-head challenges week after week. These challenges could be oriented around known computing problems or designed to educate. Things like “process a million messages from a queue” or “send billions of emails”. [Read More]

Hugo Lambda Builder

Building Hugo sites in a Lambda function

I want to build static sites to capitalize on really cheap hosting via S3. I have probably a dozen sites I’ll host on here, so all solutions will be 10x more expensive. I also want to know if building a CI/CD platform on Lambda is feasible. With systems like Jenkins, it’s really hard to hit 100% utilization. Lambda gives us that possibility, provided this all works. My code for reference: lambda-hugo-builder [Read More]

S3 Static Hosting Lessons

Some tricks I learned setting this whole thing up.

There are a lot of parts getting this whole thing set up. S3 and CloudFront can’t find default root objects Hugo uses a directory url by default (i.e. website.com/post/post_title/). When a directory url is passed to the server, it looks for the default root object in that directory. S3 is not a file system, it is an object storage system. Asking for a key (s3://website-bucket/post/post_title/) fails to find the index. [Read More]

Static Hosting on S3 with Hugo

I’m building static sites because they’re cheap, low maintenance, and highly performant. I’ve been running Wordpress sites for years, but they always seem to be more work than they’re worth. I get tired of applying updates and then fixing plugins. Hugo was recommended to me by a friend on Twitter. I’ve been working on using it ever since. Hugo Hugo is a blogging platform that generates static html pages, written in Go. [Read More]