How to deploy a static generated website to AWS Amplify
[WIP]
I did asked this question myself just before releasing this blog. But even before asking that, I was wondering what would be the easiest way to generate a personal blog. I wanted that to be easy to mantain and easy to write posts for.
As I always do when I have no idea where to start, I headed up to Google, and asked it. I came accross with one repository (thanks, @myles) that lists different types of static generators. I specifically looked for those that were build for generating blogs.
Pelican
After no-more-than-10-minutes-research (I'm mastering it!), Pelican was the option of choice. Why? It is simple, well-written, with an active community, good documentation, and fully supportive when it comes to its themes.
It supports Markdown written posts (that's what I'm using for this) as well as fully customizable variables (pages, social media links, titles...).
If you are curious about it, just take a look.
AWS
Now you might be wondering why would I want to deploy such an easy website (like a static one) into such a complex environment as it is AWS?. And you may be correct. The answer to this is convienience.
Currently, at my job position (as of end of 2023) I'm using AWS for almost everything. Besides, I use AWS for all the components of my company, Mychip (I'm planning a post explaining the general picture of that, it is very interesting).
I also set up an account for my personal use (that is, not related to any of the companies), just for fun and testing things. Among other things, I have all my domains registered there.
That's why I chose AWS to set this up.
After reading some documentation (AWS has a lot) about how to do it, I considered three approaches.