Blog Architecture
My blog
Imagining that someone might wonder how this blog here works, I will explain below.
Could it be built in a simpler way? Yes. But I wanted to do it this way to learn about the integrations, mainly GitHub with AWS.
Architecture
Below we have the technical drawing of the architecture which I will detail shortly afterwards.
Hugo
I’m using the Hugo framework as the core of this blog because it’s one of the simple ways I found to get started without having to do a lot of work configuring different things. I was looking for something simple and light, and Hugo proved that to me.
Integrations
I am using some integrations to deliver files within AWS securely.
The main one that will distribute my content to the S3 Bucket within my account is GitHub Actions, where after approval of a PR (Pull Request) for the “main” branch of my repository, the build and deploy flow of the static content.
Example of a workflow to be used in your GitHub repository:
|
|
Here we are using an IAM Role to grant access to the GitHub repository with the necessary permissions to insert objects into the Bucket, through Assume Role.
To learn how to create and configure your IAM Role for GitHub, see this AWS post.
Reinforcing that there are several ways to make this happen and I chose this one because it forced me to learn a little more about how IAM Role and other services work.
We will continue in a next post…