My blog setup is quite complex. This post is a reminder to myself. I’m currently using the below;
- Namecheap for the domain. The CNAME entry for blog.8-p.info is pointing AWS API Gateway’s CloudFront bucket.
- Bitbucket for hosting the Git repository
- Hugo as a static site generator
- Wercker to run Hugo and upload the output to Amazon S3
- Amazon S3 for storing the files
- Amazon API Gateway and AWS Lambda to serve Hugo’s output with my old blog
- AWS Certificate Manager to obtain the SSL certificate
The half of the complexity is coming from the fact that I was using blog.8-p.info for my blog from 2005 to 2011. It was on Mephisto, WordPress and some other blog engines. Now I’m running none of them, but the contents are stored as static HTML files and served as like before. Even nobody read them, cool URIs don’t change.
Therefore there are 2 S3 buckets for blog.8-p.info. One of them is for Hugo and another is for the old files. API Gateway is routing some traffic to the former, and some traffic to the latter. This might not be “API” but it works for me.