A little while ago I felt the need to brush up on my AWS knowledge, in particular the use of S3 buckets. At the time, I was going to be required to combine Lambdas, S3, and API Gateway as part of a project I was designing at work. In the end we didn’t end up needing that solution, and I ended up doing a lot of self-learning of AWS through work anyway. So when I came back to this project a few months later, I had a bit more AWS know-how than previous, but I figured I’d go through a couple of tutorials and enhance my S3 knowledge regardless.
I started off by choosing a framework called Hexo to provide a nice-looking blog layout built from markup. I was able to use a Hackernoon article from Mohamed Labouardy to understand the basics of Hexo and S3 bucket policies. The article would go on to suggest setting up CircleCI, but I thought that yet another online account was a bit unnecessary when AWS had their own CodeBuild tooling.
So I next referred to a Medium article from Andi Ashari that provided a tutorial on deploying to Amazon S3 from CodeBuild. The content being deployed to the bucket was different to what I required, but the core concepts were pretty much the same. By taking the basic YAML configuration from the Hackernoon article and adapting it into CodeBuild’s buildspec format like so…
1 | version: 0.1 |
…I was able to pretty much sync Hexo, GitHub, CodeBuild, and S3 into a nice little deployment pipeline, which resulted in this site.
Previous blogs, my material on the A-League for FourFourTwo aside, have fallen by the wayside pretty quickly. But if nothing else, I’ve put some more pipelining into practice.