Setting up Hexo on AWS

I’ve got my hexo blog running on a very simple AWS setup that consists of:

  • S3 - a bucket to store my static files (that I hexo generate)
  • CloudFront - basically acts as a simple web server and lets me point to my S3 as an origin
  • DNS - I already had a DNS name registered with GoDaddy (and sitting there unused).
  • Cert - to get a valid cert, AWS needed me to set up a CNAME on GoDaddy to validate I controlled the domain.

This, of course, all needs to be automated. At work, I would use Terraform with Terraform Enterprise or Scalr, and set up a GitLab pipeline to build and deploy this. But since I’m using GitHub, and don’t have Scalr or TFE set up, I may need to experiment on a good way to do this.

Author

John Liberty

Posted on

2025-06-15

Updated on

2025-08-04

Licensed under

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

Comments

You forgot to set the shortname for Disqus. Please set it in _config.yml.
You need to set client_id and slot_id to show this AD unit. Please set it in _config.yml.