How I Built This Blog Using AWS and Hugo

I just launched my personal blog! ๐Ÿš€ In this first post, I want to share how I built it from scratch using Hugo and AWS services like IAM, S3, ACM, and CloudFront โ€” all behind my own custom domain: nublog.cloud. ๐Ÿ› ๏ธ Tools & Services I Used Hugo โ€“ static site generator for blazing-fast content Amazon S3 โ€“ for hosting the static site AWS Certificate Manager (ACM) โ€“ for issuing a free SSL certificate Amazon CloudFront โ€“ CDN for HTTPS support and global delivery IAM โ€“ to manage secure access to AWS services Namecheap โ€“ for my custom domain nublog.cloud โš™๏ธ Key Steps I Followed 1. Set up Hugo locally hugo new site my-blog cd my-blog git init git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod echo 'theme = "PaperMod"' >> hugo.toml 2. Added a post (like this one!) hugo new posts/my-first-post.md 3. Built the site hugo 4. Synced it to S3 aws s3 sync ./public s3://my-blog-bucket --delete --profile myprofile 5. Created an ACM certificate in us-east-1 Used DNS validation via Namecheap and added the CNAME records. ...

June 16, 2025 ยท 2 min