Deploying Hugo to AWS using Terraform
Deploying a static Hugo site to AWS doesn’t have to be a complex ordeal. With Terraform, you can automate the entire infrastructure setup, making future updates and maintenance a breeze. Here’s how to launch your Hugo creation into the cloud with minimal fuss. Prerequisites Hugo installed locally AWS account with appropriate permissions Terraform installed Your Hugo site ready for deployment Step 1: Set Up Your Terraform Configuration Create a new file called main.tf with the following configuration: ...
Using Obsidian with GitHub to write Hugo blog posts
In this post, I’ll share how I streamlined my blog post creation process for my Hugo-based site using Obsidian and GitHub Actions. I made this blog using Hugo a CMS, which is hosted serverless on an S3 bucket with CloudFront as a CDN. The blog is automatically updated using GitHub Actions whenever I push new content to a GitHub repo. You can read how I did that in this post. That’s all well and good, but the workflow of writing a blog post in VSCode is not really a pleasant one. luckily I can use my favorite note taking tool Obsidian fort do this really easily, as it uses markdown, just like Hugo. ...
Deploying a Hugo site to S3 with GitHub actions
I wanted to automatically deploy this Hugo blog to an S3 bucket for easy maintenance, and to learn more about GitHub actions. Static website hosting in S3 is one of the easiest and most cost effective ways of hosting a simple site like this one. Step 1: Setting Up GitHub Actions Workflow Begin by creating a ‘.github/workflows’ directory in your Hugo project repository. Inside this directory, create a YAML file, such as deploy.yml. Define the workflow to trigger on pushes to the main branch, and specify the jobs required for deployment. ...